--- a/web/views/magicsearch.py Wed Sep 16 18:41:12 2015 +0200
+++ b/web/views/magicsearch.py Wed Sep 16 18:43:02 2015 +0200
@@ -23,6 +23,8 @@
import re
from logging import getLogger
+from six import text_type
+
from yams.interfaces import IVocabularyConstraint
from rql import RQLSyntaxError, BadRQLQuery, parse
@@ -386,7 +388,7 @@
self.processors = sorted(processors, key=lambda x: x.priority)
def process_query(self, uquery):
- assert isinstance(uquery, unicode)
+ assert isinstance(uquery, text_type)
try:
procname, query = uquery.split(':', 1)
proc = self.by_name[procname.strip().lower()]