port to python3

This commit is contained in:
j 2014-09-03 00:32:44 +02:00
commit 8e27b9f76e
51 changed files with 272 additions and 248 deletions

View file

@ -101,7 +101,7 @@ class Parser(object):
q = ~q
return q
elif key_type in ("string", "text"):
if isinstance(v, unicode):
if isinstance(v, str):
v = unicodedata.normalize('NFKD', v).lower()
else:
v = v.lower()