# HG changeset patch # User Laurent Peuch # Date 1576733536 -3600 # Node ID 5318da3497e80c5e15172e13326abd59c08f1130 # Parent 0e9ce897dfdf65a69c596685d1b401fd103d280b [python3] 'unicode' function doesn't exist anymore diff -r 0e9ce897dfdf -r 5318da3497e8 cubicweb/web/views/sparql.py --- a/cubicweb/web/views/sparql.py Thu Dec 19 01:04:07 2019 +0100 +++ b/cubicweb/web/views/sparql.py Thu Dec 19 06:32:16 2019 +0100 @@ -61,11 +61,11 @@ try: qinfo = Sparql2rqlTranslator(self._cw.vreg.schema).translate(sparql) except TypeResolverException as exc: - self.w(self._cw._('can not resolve entity types:') + u' ' + unicode(exc)) + self.w(self._cw._('can not resolve entity types:') + u' ' + str(exc)) except UnsupportedQuery: self.w(self._cw._('we are not yet ready to handle this query')) except xy.UnsupportedVocabulary as exc: - self.w(self._cw._('unknown vocabulary:') + u' ' + unicode(exc)) + self.w(self._cw._('unknown vocabulary:') + u' ' + str(exc)) else: rql, args = qinfo.finalize() if vid == 'sparqlxml':