Soften assertion for Python 2

I really don't care about correctness anymore, this madness will go away
once we ditch Py2.
This commit is contained in:
Markus Unterwaditzer 2016-03-05 19:56:53 +01:00
parent 017495935f
commit 81b56ac5d3

View file

@ -59,5 +59,5 @@ def _normalize_value(value):
if value is None:
return value
else:
assert isinstance(value, text_type)
assert isinstance(value, (bytes, text_type))
return value.strip()