fix print statement

This commit is contained in:
Benjamin Peterson 2009-09-25 20:34:04 +00:00
parent b297e714e2
commit 8fb00bef27
1 changed files with 3 additions and 3 deletions

View File

@ -64,7 +64,7 @@ class StdoutRefactoringTool(refactor.MultiprocessRefactoringTool):
print(line)
def warn(msg):
print >> sys.stderr, "WARNING: %s" % (msg,)
print("WARNING: %s" % (msg,), file=sys.stderr)
def main(fixer_pkg, args=None):
@ -159,8 +159,8 @@ def main(fixer_pkg, args=None):
options.processes)
except refactor.MultiprocessingUnsupported:
assert options.processes > 1
print >> sys.stderr, "Sorry, -j isn't " \
"supported on this platform."
print("Sorry, -j isn't supported on this platform.",
file=sys.stderr)
return 1
rt.summarize()