mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
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:
parent
017495935f
commit
81b56ac5d3
1 changed files with 1 additions and 1 deletions
|
|
@ -59,5 +59,5 @@ def _normalize_value(value):
|
||||||
if value is None:
|
if value is None:
|
||||||
return value
|
return value
|
||||||
else:
|
else:
|
||||||
assert isinstance(value, text_type)
|
assert isinstance(value, (bytes, text_type))
|
||||||
return value.strip()
|
return value.strip()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue