Fixes for python 2to3 migration

This commit is contained in:
Fabio Rossi
2018-02-01 10:03:53 +01:00
committed by wmayer
parent 4ef00d7be4
commit 4506e49689
2 changed files with 19 additions and 19 deletions

View File

@@ -149,7 +149,7 @@ def export(objectslist,filename,argstring):
print("the object " + obj.Name + " is not a path. Please select only path and Compounds.")
return
print "postprocessing..."
print("postprocessing...")
gcode = ""
#Find the machine.
@@ -161,7 +161,7 @@ def export(objectslist,filename,argstring):
if p.Name == "Machine":
myMachine = p
if myMachine is None:
print "No machine found in this project"
print("No machine found in this project")
else:
if myMachine.MachineUnits == "Metric":
UNITS = "G21"
@@ -212,7 +212,7 @@ def export(objectslist,filename,argstring):
else:
final = gcode
print "done postprocessing."
print("done postprocessing.")
gfile = pythonopen(filename,"wb")
gfile.write(gcode)
@@ -301,5 +301,5 @@ def parse(pathobj):
return out
print __name__ + " gcode postprocessor loaded."
print(__name__ + " gcode postprocessor loaded.")