diff options
Diffstat (limited to 'python/subunit')
| -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(): |
