Commit 12014df0 authored by Georg Brandl's avatar Georg Brandl

Fix indentation in example.

parent ced5677c
...@@ -698,8 +698,8 @@ An example of a custom action:: ...@@ -698,8 +698,8 @@ An example of a custom action::
>>> class FooAction(argparse.Action): >>> class FooAction(argparse.Action):
... def __call__(self, parser, namespace, values, option_string=None): ... def __call__(self, parser, namespace, values, option_string=None):
... print('%r %r %r' % (namespace, values, option_string)) ... print('%r %r %r' % (namespace, values, option_string))
... setattr(namespace, self.dest, values) ... setattr(namespace, self.dest, values)
... ...
>>> parser = argparse.ArgumentParser() >>> parser = argparse.ArgumentParser()
>>> parser.add_argument('--foo', action=FooAction) >>> parser.add_argument('--foo', action=FooAction)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment