Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2f1db7d

Browse files
committed
#11904: fix indentation in argparse doc. Noticed by Vladimir Rutsky.
1 parent 00f53af commit 2f1db7d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/library/argparse.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -651,17 +651,17 @@ them, though most actions simply add an attribute to the object returned by
651651
command-line args should be handled. The supported actions are:
652652

653653
* ``'store'`` - This just stores the argument's value. This is the default
654-
action. For example::
654+
action. For example::
655655

656656
>>> parser = argparse.ArgumentParser()
657657
>>> parser.add_argument('--foo')
658658
>>> parser.parse_args('--foo 1'.split())
659659
Namespace(foo='1')
660660

661661
* ``'store_const'`` - This stores the value specified by the const_ keyword
662-
argument. (Note that the const_ keyword argument defaults to the rather
663-
unhelpful ``None``.) The ``'store_const'`` action is most commonly used with
664-
optional arguments that specify some sort of flag. For example::
662+
argument. (Note that the const_ keyword argument defaults to the rather
663+
unhelpful ``None``.) The ``'store_const'`` action is most commonly used with
664+
optional arguments that specify some sort of flag. For example::
665665

666666
>>> parser = argparse.ArgumentParser()
667667
>>> parser.add_argument('--foo', action='store_const', const=42)

0 commit comments

Comments
 (0)