diff --git a/src/Mod/Draft/importDXF.py b/src/Mod/Draft/importDXF.py index f78b0a2a94..795098d86a 100644 --- a/src/Mod/Draft/importDXF.py +++ b/src/Mod/Draft/importDXF.py @@ -3932,7 +3932,7 @@ def exportPage(page, filename): c = dxfcounter() pat = re.compile("(_handle_)") template = pat.sub(c.incr, template) - f = pythonopen(filename, "wb") + f = pythonopen(filename, "w") f.write(template) f.close()