Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c0a40ab

Browse files
committed
make lib2to3/main.py syntax py3k valid
1 parent fb1a5eb commit c0a40ab

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Lib/lib2to3/main.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,19 @@ def main(fixer_pkg, args=None):
3939
refactor_stdin = False
4040
options, args = parser.parse_args(args)
4141
if options.list_fixes:
42-
print "Available transformations for the -f/--fix option:"
42+
print("Available transformations for the -f/--fix option:")
4343
for fixname in refactor.get_all_fix_names(fixer_pkg):
44-
print fixname
44+
print(fixname)
4545
if not args:
4646
return 0
4747
if not args:
48-
print >>sys.stderr, "At least one file or directory argument required."
49-
print >>sys.stderr, "Use --help to show usage."
48+
print("At least one file or directory argument required.", file=sys.stderr)
49+
print("Use --help to show usage.", file=sys.stderr)
5050
return 2
5151
if "-" in args:
5252
refactor_stdin = True
5353
if options.write:
54-
print >>sys.stderr, "Can't write to stdin."
54+
print("Can't write to stdin.", file=sys.stderr)
5555
return 2
5656

5757
# Set up logging handler

0 commit comments

Comments
 (0)