python: Path: *.py: Fix python3 syntax

This commit is contained in:
Priit Laes
2016-03-12 14:59:57 +02:00
committed by looooo
parent ddfaf61660
commit 94fe93aeb7
5 changed files with 21 additions and 21 deletions

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.")