Commit 8fb00bef authored by Benjamin Peterson's avatar Benjamin Peterson

fix print statement

parent b297e714
...@@ -64,7 +64,7 @@ class StdoutRefactoringTool(refactor.MultiprocessRefactoringTool): ...@@ -64,7 +64,7 @@ class StdoutRefactoringTool(refactor.MultiprocessRefactoringTool):
print(line) print(line)
def warn(msg): def warn(msg):
print >> sys.stderr, "WARNING: %s" % (msg,) print("WARNING: %s" % (msg,), file=sys.stderr)
def main(fixer_pkg, args=None): def main(fixer_pkg, args=None):
...@@ -159,8 +159,8 @@ def main(fixer_pkg, args=None): ...@@ -159,8 +159,8 @@ def main(fixer_pkg, args=None):
options.processes) options.processes)
except refactor.MultiprocessingUnsupported: except refactor.MultiprocessingUnsupported:
assert options.processes > 1 assert options.processes > 1
print >> sys.stderr, "Sorry, -j isn't " \ print("Sorry, -j isn't supported on this platform.",
"supported on this platform." file=sys.stderr)
return 1 return 1
rt.summarize() rt.summarize()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment