cubicweb/web/controller.py
changeset 12567 26744ad37953
parent 12503 b01dd0ef43aa
--- a/cubicweb/web/controller.py	Fri Apr 05 17:21:14 2019 +0200
+++ b/cubicweb/web/controller.py	Fri Apr 05 17:58:19 2019 +0200
@@ -17,10 +17,6 @@
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 """abstract controller classe for CubicWeb web client"""
 
-
-
-from six import PY2
-
 from logilab.mtconverter import xml_escape
 from logilab.common.registry import yes
 
@@ -88,8 +84,6 @@
         rql = req.form.get('rql')
         if rql:
             req.ensure_ro_rql(rql)
-            if PY2 and not isinstance(rql, unicode):
-                rql = unicode(rql, req.encoding)
             pp = req.vreg['components'].select_or_none('magicsearch', req)
             if pp is not None:
                 return pp.process_query(rql)