10
0
mirror of https://gitlab.com/scemama/EZFIO.git synced 2024-12-22 04:13:34 +01:00

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: else:
raise TypeError raise TypeError
elif type == "ch": 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: else:
raise TypeError raise TypeError
return conv return conv

View File

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