python: Path: *.py: Fix python3 syntax

This commit is contained in:
Priit Laes
2017-01-29 22:35:36 +01:00
committed by looooo
parent 8ed62e3965
commit 71f6a289c6
5 changed files with 21 additions and 21 deletions
+3 -3
View File
@@ -60,7 +60,7 @@ def insert(filename,docname):
def parse(inputstring):
"parse(inputstring): returns a parsed output string"
print "preprocessing..."
print("preprocessing...")
# split the input by line
lines = inputstring.split("\n")
@@ -93,9 +93,9 @@ def parse(inputstring):
# no G or M command: we repeat the last one
output += lastcommand + " " + l + "\n"
print "done preprocessing."
print("done preprocessing.")
return output
print __name__ + " gcode preprocessor loaded."
print(__name__ + " gcode preprocessor loaded.")