Draft: py3 bugfix

This commit is contained in:
Yorik van Havre
2018-12-03 18:39:57 -02:00
parent 7683bb2b4f
commit 0c732a4ee8

View File

@@ -215,6 +215,9 @@ def deformat(text):
ns += ss.decode("latin1")
except UnicodeError:
print("unable to decode text: ",text)
except AttributeError:
# this is python3 (nothing to do)
ns += ss
t = ns
# replace degrees, diameters chars
t = re.sub('%%d',u'°',t)