[Python-checkins] cpython (2.7): #15345: fix SyntaxError in argparse tutorial example. Patch by Simon Hayward.
ezio.melotti
python-checkins at python.org
Fri Jul 13 21:40:49 CEST 2012
http://hg.python.org/cpython/rev/de18c4470ff1
changeset: 78089:de18c4470ff1
branch: 2.7
parent: 78086:9bbc4900301c
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Fri Jul 13 21:40:25 2012 +0200
summary:
#15345: fix SyntaxError in argparse tutorial example. Patch by Simon Hayward.
files:
Doc/howto/argparse.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/howto/argparse.rst b/Doc/howto/argparse.rst
--- a/Doc/howto/argparse.rst
+++ b/Doc/howto/argparse.rst
@@ -646,7 +646,7 @@
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:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list