[python3] 'unicode' function doesn't exist anymore
authorLaurent Peuch <cortex@worlddomination.be>
Thu, 19 Dec 2019 06:32:16 +0100
changeset 12830 5318da3497e8
parent 12829 0e9ce897dfdf
child 12831 b1ef9690f357
[python3] 'unicode' function doesn't exist anymore
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':