Merge branch 'master' into 'master'

fix string handling so it works with bytes or str object

See merge request scemama/EZFIO!5
This commit is contained in:
Anthony Scemama 2020-08-03 19:56:22 +00:00
commit 400dd83599
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