[Python-checkins] cpython (merge 3.2 -> default): Issue #13605: merge with 3.2

sandro.tosi python-checkins at python.org
Sun Feb 19 19:59:38 CET 2012


http://hg.python.org/cpython/rev/c3daa6a834c6
changeset:   75040:c3daa6a834c6
parent:      75038:336a614f35a3
parent:      75039:996efb0425c5
user:        Sandro Tosi <sandro.tosi at gmail.com>
date:        Sun Feb 19 19:54:23 2012 +0100
summary:
  Issue #13605: merge with 3.2

files:
  Doc/library/argparse.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -867,7 +867,7 @@
      >>> parser.add_argument('--foo')
      >>> parser.add_argument('command')
      >>> parser.add_argument('args', nargs=argparse.REMAINDER)
-     >>> print parser.parse_args('--foo B cmd --arg1 XX ZZ'.split())
+     >>> print(parser.parse_args('--foo B cmd --arg1 XX ZZ'.split()))
      Namespace(args=['--arg1', 'XX', 'ZZ'], command='cmd', foo='B')
 
 If the ``nargs`` keyword argument is not provided, the number of arguments consumed

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list