Arch: Remove Py2 code

This commit is contained in:
Chris Hennes
2022-11-07 22:05:55 -06:00
committed by Uwe
parent ca8609ef3a
commit a64fef50bc
8 changed files with 15 additions and 125 deletions

View File

@@ -864,10 +864,7 @@ def export( exportList, filename, colors = None, camera = None ):
html = html.replace('$data', json.dumps(data, separators=(',', ':')) ) # Shape Data
if six.PY2:
outfile = pythonopen(filename, "wb")
else:
outfile = pythonopen(filename, "w")
outfile = pythonopen(filename, "w")
outfile.write( html )
outfile.close()
FreeCAD.Console.PrintMessage( translate("Arch", "Successfully written") + ' ' + filename + "\n" )