From: Benjamin Peterson Date: Fri, 25 Sep 2009 20:34:04 +0000 (+0000) Subject: fix print statement X-Git-Tag: v3.2a1~2494 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8fb00bef2747b832c828981f2b54d2f88495694f;p=thirdparty%2FPython%2Fcpython.git fix print statement --- diff --git a/Lib/lib2to3/main.py b/Lib/lib2to3/main.py index 828b02f5ca9a..7c26cdbccc86 100644 --- a/Lib/lib2to3/main.py +++ b/Lib/lib2to3/main.py @@ -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()