cubicweb/web/views/magicsearch.py
changeset 12567 26744ad37953
parent 11767 432f87a63057
child 12578 d06a2feae373
--- a/cubicweb/web/views/magicsearch.py	Fri Apr 05 17:21:14 2019 +0200
+++ b/cubicweb/web/views/magicsearch.py	Fri Apr 05 17:58:19 2019 +0200
@@ -23,8 +23,6 @@
 import re
 from logging import getLogger
 
-from six import text_type
-
 from yams.interfaces import IVocabularyConstraint
 
 from rql import RQLSyntaxError, BadRQLQuery, parse
@@ -388,7 +386,7 @@
         self.processors = sorted(processors, key=lambda x: x.priority)
 
     def process_query(self, uquery):
-        assert isinstance(uquery, text_type)
+        assert isinstance(uquery, str)
         try:
             procname, query = uquery.split(':', 1)
             proc = self.by_name[procname.strip().lower()]