fix string handling so it works with bytes or str object

This commit is contained in:
Kevin Gasperich 2020-08-03 13:46:48 -05:00
parent e2a79a0c53
commit 13a32e3de3
2 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@ def get_conv(type):
else:
raise TypeError
elif type == "ch":
conv = lambda x: x.decode('utf-8').strip()
conv = lambda x: x.decode('utf-8').strip() if isinstance(x,bytes) else x.strip()
else:
raise TypeError
return conv

View File

@ -1 +1 @@
VERSION=2.0.2
VERSION=2.0.3