Fix indentation in example.

This commit is contained in:
Georg Brandl 2010-07-26 17:00:20 +00:00
parent f6914aa76b
commit 571a953590
1 changed files with 2 additions and 2 deletions

View File

@ -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)