From: Georg Brandl Date: Mon, 26 Jul 2010 17:00:20 +0000 (+0000) Subject: Fix indentation in example. X-Git-Tag: v3.2a1~97 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=571a953590617dc5534fba13fa40008ff9d95457;p=thirdparty%2FPython%2Fcpython.git Fix indentation in example. --- diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index 141385f4c57e..ec212d5044d0 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)