diff options
author | Georg Brandl <georg@python.org> | 2010-07-26 17:00:20 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-07-26 17:00:20 (GMT) |
commit | 571a953590617dc5534fba13fa40008ff9d95457 (patch) | |
tree | a4aebf902a24aef5356748a44d852cd580ebe606 /Doc/library/argparse.rst | |
parent | f6914aa76be75b5ac6fe2c11a3f1cedab317f43a (diff) | |
download | cpython-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.rst | 4 |
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) |