fix NameError (s/query/rql) in dataio.rqlquery (closes #279601)

authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
changesetafd0c31334e2
branchdefault
phasepublic
hiddenno
parent revision#65bce2c06a62 [tests] skip SPARQL tests when python-sparqlwrapper is not installed (closes #279604)
child revision#010d03707a5f [dataio] provide compatibility with CW 3.19 (closes #279602)
files modified by this revision
utils/dataio.py
# HG changeset patch
# User Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
# Date 1416819794 -3600
# Mon Nov 24 10:03:14 2014 +0100
# Node ID afd0c31334e259309501f2e7facf9bc7ef46cc35
# Parent 65bce2c06a62c543aaa43264c477681a5e96a8a4
fix NameError (s/query/rql) in dataio.rqlquery (closes #279601)

diff --git a/utils/dataio.py b/utils/dataio.py
@@ -89,11 +89,11 @@
1          if host in _cache_cnx:
2              cnx = _cache_cnx[host]
3          else:
4              cnx = get_cw_cnx(host)
5              _cache_cnx[host] = cnx
6 -        return cnx.execute(query, kwargs)
7 +        return cnx.execute(rql, kwargs)
8 
9 
10  ###############################################################################
11  ### SPARQL FUNCTIONS ##########################################################
12  ###############################################################################