diff options
| author | Thomi Richards <thomi.richards@canonical.com> | 2013-11-20 14:37:53 +1300 |
|---|---|---|
| committer | Thomi Richards <thomi.richards@canonical.com> | 2013-11-20 14:37:53 +1300 |
| commit | bcbee786daffffce1a07bb24829d408da76c6176 (patch) | |
| tree | 80d4c66070a7fa5768b9942859c2aab5ffedee13 /python | |
| parent | b19f752ffe8463788244b7d6c1126c9056067eac (diff) | |
| download | subunit-bcbee786daffffce1a07bb24829d408da76c6176.tar.gz | |
Fix indentation.
Diffstat (limited to 'python')
| -rw-r--r-- | python/subunit/_output.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/python/subunit/_output.py b/python/subunit/_output.py index 12479e8..432fa12 100644 --- a/python/subunit/_output.py +++ b/python/subunit/_output.py @@ -124,21 +124,21 @@ def parse_arguments(args=None, ParserClass=ArgumentParser): class StatusAction(Action): - """A custom action that stores option name and argument separately. + """A custom action that stores option name and argument separately. - This is part of a workaround for the fact that argparse does not - support optional subcommands (http://bugs.python.org/issue9253). - """ + This is part of a workaround for the fact that argparse does not + support optional subcommands (http://bugs.python.org/issue9253). + """ - def __init__(self, status_name, *args, **kwargs): - super(StatusAction, self).__init__(*args, **kwargs) - self._status_name = status_name + def __init__(self, status_name, *args, **kwargs): + super(StatusAction, self).__init__(*args, **kwargs) + self._status_name = status_name - def __call__(self, parser, namespace, values, option_string=None): - if getattr(namespace, self.dest, None) is not None: - raise ArgumentError(self, "Only one status may be specified at once.") - setattr(namespace, self.dest, self._status_name) - setattr(namespace, 'test_id', values[0]) + def __call__(self, parser, namespace, values, option_string=None): + if getattr(namespace, self.dest, None) is not None: + raise ArgumentError(self, "Only one status may be specified at once.") + setattr(namespace, self.dest, self._status_name) + setattr(namespace, 'test_id', values[0]) def get_output_stream_writer(): |
