summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-09-25 20:34:04 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-09-25 20:34:04 (GMT)
commit8fb00bef2747b832c828981f2b54d2f88495694f (patch)
treeef81d056cb0f66d9a9b760b3a37453ab223914e6 /Lib
parentb297e714e29e3dfed6091f80c642c88571b95d43 (diff)
downloadcpython-8fb00bef2747b832c828981f2b54d2f88495694f.zip
cpython-8fb00bef2747b832c828981f2b54d2f88495694f.tar.gz
cpython-8fb00bef2747b832c828981f2b54d2f88495694f.tar.bz2
fix print statement
Diffstat (limited to 'Lib')
-rw-r--r--Lib/lib2to3/main.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/lib2to3/main.py b/Lib/lib2to3/main.py
index 828b02f..7c26cdb 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()