diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2011-10-28 09:21:19 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2011-10-28 09:21:19 (GMT) |
commit | 74e6495a20d8879d7610386d8bdb6a4139fd0776 (patch) | |
tree | f99f49eaaac12cf58b1ea31671f0c6ff73b25b21 /Doc/library/argparse.rst | |
parent | 6187664fa777ba45c4674603bbd7e43eacacfe16 (diff) | |
download | cpython-74e6495a20d8879d7610386d8bdb6a4139fd0776.zip cpython-74e6495a20d8879d7610386d8bdb6a4139fd0776.tar.gz cpython-74e6495a20d8879d7610386d8bdb6a4139fd0776.tar.bz2 |
Fixes #13270: obsolete reference to old-style/new-style classes.
Diffstat (limited to 'Doc/library/argparse.rst')
-rw-r--r-- | Doc/library/argparse.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index 88270ed..9c7ef52 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -703,7 +703,7 @@ how the command-line arguments should be handled. The supported actions are: >>> parser.add_argument('--str', dest='types', action='append_const', const=str) >>> parser.add_argument('--int', dest='types', action='append_const', const=int) >>> parser.parse_args('--str --int'.split()) - Namespace(types=[<type 'str'>, <type 'int'>]) + Namespace(types=[<class 'str'>, <class 'int'>]) * ``'version'`` - This expects a ``version=`` keyword argument in the :meth:`~ArgumentParser.add_argument` call, and prints version information |