summaryrefslogtreecommitdiffstats
path: root/Doc/library/argparse.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-07-26 17:00:20 (GMT)
committerGeorg Brandl <georg@python.org>2010-07-26 17:00:20 (GMT)
commit571a953590617dc5534fba13fa40008ff9d95457 (patch)
treea4aebf902a24aef5356748a44d852cd580ebe606 /Doc/library/argparse.rst
parentf6914aa76be75b5ac6fe2c11a3f1cedab317f43a (diff)
downloadcpython-571a953590617dc5534fba13fa40008ff9d95457.zip
cpython-571a953590617dc5534fba13fa40008ff9d95457.tar.gz
cpython-571a953590617dc5534fba13fa40008ff9d95457.tar.bz2
Fix indentation in example.
Diffstat (limited to 'Doc/library/argparse.rst')
-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 141385f..ec212d5 100644
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -698,8 +698,8 @@ An example of a custom action::
>>> class FooAction(argparse.Action):
... def __call__(self, parser, namespace, values, option_string=None):
- ... print('%r %r %r' % (namespace, values, option_string))
- ... setattr(namespace, self.dest, values)
+ ... print('%r %r %r' % (namespace, values, option_string))
+ ... setattr(namespace, self.dest, values)
...
>>> parser = argparse.ArgumentParser()
>>> parser.add_argument('--foo', action=FooAction)