From 0c732a4ee8f0e842d8df19f2aa0229f327c8ed95 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Mon, 3 Dec 2018 18:39:57 -0200 Subject: [PATCH] Draft: py3 bugfix --- src/Mod/Draft/importDXF.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mod/Draft/importDXF.py b/src/Mod/Draft/importDXF.py index 72baae990f..c2b7fee0c0 100644 --- a/src/Mod/Draft/importDXF.py +++ b/src/Mod/Draft/importDXF.py @@ -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)