Repair pythonopen in line 126 for Python3

Python 3 is fussy about match of data type for a file open or write. Python 2 does not seem to care if a string is written with a 'wb' indicating a binary type, but Python 3 flags it as an error.
This commit is contained in:
GeneGH
2019-02-07 17:19:57 -05:00
committed by Yorik van Havre
parent cce889b21c
commit 09da55e90f

View File

@@ -123,7 +123,7 @@ def export(exportList,filename):
"exports the given objects to an .html file"
html = getHTML(exportList)
outfile = pythonopen(filename,"wb")
outfile = pythonopen(filename,"w")
outfile.write(html)
outfile.close()
FreeCAD.Console.PrintMessage(translate("Arch","Successfully written", utf8_decode=True) + ' ' + filename + "\n")