Closed amleczko closed 9 years ago
line 45 change to if(type(v) == type(u'')): can solved the problem in python 3
try:
if(type(v) == type(u'')):
conditions += parse('{0}{1}'.format(k, v.encode('utf-8')), model)
else:
conditions += parse('{0}{1}'.format(k, v), model)
except ParseError:
pass
else:
continue
Pep8 test in tox now complains about the way of testing type:
pep8 runtests: PYTHONHASHSEED='803820383'
pep8 runtests: commands[0] | flake8
./eve_sqlalchemy/parser.py:45:24: E721 do not compare types, use 'isinstance()'
After #61 we have this problem: