# HG changeset patch # User Rémi Cardona # Date 1442421782 -7200 # Node ID 9bad9e06193219c080c81ab22e8d57f270e53f2a # Parent bee7de3b4e553d67b3d867e2e145b09e9cf21be9 [py3k] unicode → six.text_type diff -r bee7de3b4e55 -r 9bad9e061932 web/views/magicsearch.py --- 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()]