[Python-checkins] cpython (3.2): #11904: fix indentation in argparse doc. Noticed by Vladimir Rutsky.
ezio.melotti
python-checkins at python.org
Thu Apr 21 22:13:37 CEST 2011
http://hg.python.org/cpython/rev/473fada5f1b7
changeset: 69521:473fada5f1b7
branch: 3.2
parent: 69517:88df1ef4eec8
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Thu Apr 21 23:06:48 2011 +0300
summary:
#11904: fix indentation in argparse doc. Noticed by Vladimir Rutsky.
files:
Doc/library/argparse.rst | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -651,7 +651,7 @@
command-line args should be handled. The supported actions are:
* ``'store'`` - This just stores the argument's value. This is the default
- action. For example::
+ action. For example::
>>> parser = argparse.ArgumentParser()
>>> parser.add_argument('--foo')
@@ -659,9 +659,9 @@
Namespace(foo='1')
* ``'store_const'`` - This stores the value specified by the const_ keyword
- argument. (Note that the const_ keyword argument defaults to the rather
- unhelpful ``None``.) The ``'store_const'`` action is most commonly used with
- optional arguments that specify some sort of flag. For example::
+ argument. (Note that the const_ keyword argument defaults to the rather
+ unhelpful ``None``.) The ``'store_const'`` action is most commonly used with
+ optional arguments that specify some sort of flag. For example::
>>> parser = argparse.ArgumentParser()
>>> parser.add_argument('--foo', action='store_const', const=42)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list