summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-08-03 18:54:11 (GMT)
committerJason R. Coombs <jaraco@jaraco.com>2014-08-03 18:54:11 (GMT)
commit79690ac1d0b25c048768e9d3870b475e235f9e7a (patch)
treefc74cfa6cb09e31dc5e3067be949ee2eb34e65c8 /Doc
parenteb0ef415d597dfbe98ef46d063872facd55e7aff (diff)
downloadcpython-79690ac1d0b25c048768e9d3870b475e235f9e7a.zip
cpython-79690ac1d0b25c048768e9d3870b475e235f9e7a.tar.gz
cpython-79690ac1d0b25c048768e9d3870b475e235f9e7a.tar.bz2
Issue #13540: Update references to Action class to match syntax used for other classes in this file.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/argparse.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
index 547ad14..0b403b7 100644
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -739,7 +739,7 @@ how the command-line arguments should be handled. The supplied actions are:
You may also specify an arbitrary action by passing an Action subclass or
other object that implements the same interface. The recommended way to do
-this is to extend :class:`argparse.Action`, overriding the ``__call__`` method
+this is to extend :class:`Action`, overriding the ``__call__`` method
and optionally the ``__init__`` method.
An example of a custom action::
@@ -762,7 +762,7 @@ An example of a custom action::
>>> args
Namespace(bar='1', foo='2')
-For more details, see :class:`argparse.Action`.
+For more details, see :class:`Action`.
nargs
^^^^^