Use regular 'w' mode when writing text files for py3 compatibility.

This commit is contained in:
markus
2019-01-28 16:00:00 -08:00
committed by Yorik van Havre
parent 98d77f8caa
commit 58e25d463e
14 changed files with 14 additions and 14 deletions

View File

@@ -164,7 +164,7 @@ class CommandJobTemplateExport:
encoded = job.Proxy.setupSheet.encodeTemplateAttributes(attrs)
# write template
with open(PathUtil.toUnicode(path), 'wb') as fp:
with open(PathUtil.toUnicode(path), 'w') as fp:
json.dump(encoded, fp, sort_keys=True, indent=2)
if FreeCAD.GuiUp: