]> granicus.if.org Git - python/commitdiff
#11904: fix indentation in argparse doc. Noticed by Vladimir Rutsky.
authorEzio Melotti <ezio.melotti@gmail.com>
Thu, 21 Apr 2011 20:06:48 +0000 (23:06 +0300)
committerEzio Melotti <ezio.melotti@gmail.com>
Thu, 21 Apr 2011 20:06:48 +0000 (23:06 +0300)
Doc/library/argparse.rst

index 56cb189ca87b0a14f82b3b41f901357523b87c32..cecd47271e9fc26402428c0d98fa9de5a21bb766 100644 (file)
@@ -647,7 +647,7 @@ them, though most actions simply add an attribute to the object returned by
 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')
@@ -655,9 +655,9 @@ command-line args should be handled. The supported actions are:
     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)