Commits

Matt Chaput committed 5a3b302

Replaced possible string formatting error if "value" is a tuple.

Comments (0)

Files changed (1)

src/whoosh/analysis/tokenizers.py

         :param tokenize: if True, the text should be tokenized.
         """
 
-        assert isinstance(value, text_type), "%r is not unicode" % value
+        assert isinstance(value, text_type), "%s is not unicode" % repr(value)
 
         t = Token(positions, chars, removestops=removestops, mode=mode,
                   **kwargs)