From 0a34b6d9a03bb0959f2a10421a907a27f5f34980 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Sat, 5 Jan 2019 16:22:10 -0200 Subject: [PATCH] Fixed six.py2 -> PY2 --- src/Mod/Draft/importDXF.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Draft/importDXF.py b/src/Mod/Draft/importDXF.py index b4cb58dcc5..e148bed764 100644 --- a/src/Mod/Draft/importDXF.py +++ b/src/Mod/Draft/importDXF.py @@ -1573,7 +1573,7 @@ def open(filename): getDXFlibs() if dxfReader: docname = os.path.splitext(os.path.basename(filename))[0] - if six.py2: + if six.PY2: if isinstance(docname,six.text_type): #workaround since newDocument currently can't handle unicode filenames docname = docname.encode(sys.getfilesystemencoding())