remove .encode which creates byte vs string comparison issues. Fixes #1582

This commit is contained in:
clinton-hall 2019-03-15 20:42:21 +13:00
commit 19c3e1fd85
3 changed files with 36 additions and 36 deletions

View file

@ -20,10 +20,10 @@ def sanitize_name(name):
# remove leading/trailing periods and spaces
name = name.strip(' .')
try:
name = name.encode(core.SYS_ENCODING)
except Exception:
pass
#try:
# name = name.encode(core.SYS_ENCODING)
#except Exception:
# pass
return name