mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-10 11:35:53 +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:
|
||||
return value
|
||||
else:
|
||||
assert isinstance(value, text_type)
|
||||
assert isinstance(value, (bytes, text_type))
|
||||
return value.strip()
|
||||
|
|
|
|||
Loading…
Reference in a new issue