]> granicus.if.org Git - python/commitdiff
#15345: fix SyntaxError in argparse tutorial example. Patch by Simon Hayward.
authorEzio Melotti <ezio.melotti@gmail.com>
Fri, 13 Jul 2012 19:40:25 +0000 (21:40 +0200)
committerEzio Melotti <ezio.melotti@gmail.com>
Fri, 13 Jul 2012 19:40:25 +0000 (21:40 +0200)
Doc/howto/argparse.rst

index eed6a5fdb0144274af58930fa7d539b3f1e1ff56..449f7cd96f0b0a86e37638367d731a25d9481b3f 100644 (file)
@@ -646,7 +646,7 @@ to display *more* text instead::
    if args.verbosity >= 2:
        print "Running '{}'".format(__file__)
    if args.verbosity >= 1:
-       print "{}^{} == ".format(args.x, args.y), end=""
+       print "{}^{} ==".format(args.x, args.y),
    print answer
 
 Output: