mirror of
https://gitlab.com/scemama/EZFIO.git
synced 2025-01-03 01:55:44 +01:00
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:
commit
400dd83599
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user