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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user