summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-09-11 21:05:25 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-09-11 21:05:25 (GMT)
commitc0a40ab6237ffea6feabb602853ba16aae9471f4 (patch)
tree705343d83c5f6fbe93d3546805c2e65fe4dd81d8 /Lib/lib2to3
parentfb1a5eb101373c677ecd9daeb7579a2385e1f2bc (diff)
downloadcpython-c0a40ab6237ffea6feabb602853ba16aae9471f4.zip
cpython-c0a40ab6237ffea6feabb602853ba16aae9471f4.tar.gz
cpython-c0a40ab6237ffea6feabb602853ba16aae9471f4.tar.bz2
make lib2to3/main.py syntax py3k valid
Diffstat (limited to 'Lib/lib2to3')
-rw-r--r--Lib/lib2to3/main.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/lib2to3/main.py b/Lib/lib2to3/main.py
index c092886..939f4f7 100644
--- a/Lib/lib2to3/main.py
+++ b/Lib/lib2to3/main.py
@@ -39,19 +39,19 @@ def main(fixer_pkg, args=None):
refactor_stdin = False
options, args = parser.parse_args(args)
if options.list_fixes:
- print "Available transformations for the -f/--fix option:"
+ print("Available transformations for the -f/--fix option:")
for fixname in refactor.get_all_fix_names(fixer_pkg):
- print fixname
+ print(fixname)
if not args:
return 0
if not args:
- print >>sys.stderr, "At least one file or directory argument required."
- print >>sys.stderr, "Use --help to show usage."
+ print("At least one file or directory argument required.", file=sys.stderr)
+ print("Use --help to show usage.", file=sys.stderr)
return 2
if "-" in args:
refactor_stdin = True
if options.write:
- print >>sys.stderr, "Can't write to stdin."
+ print("Can't write to stdin.", file=sys.stderr)
return 2
# Set up logging handler