Skip to content
Snippets Groups Projects
Commit d774de4b authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Don't use the old-style "super" call.

parent 716efb19
No related branches found
No related tags found
No related merge requests found
......@@ -75,9 +75,7 @@ class BooleanAction(argparse.Action):
def __init__(self, option_strings, dest, nargs=None, **kwargs):
if nargs is not None:
raise ValueError("nargs not allowed for BooleanAction")
super(BooleanAction, self).__init__(
option_strings, dest, nargs=0, **kwargs
)
super().__init__(option_strings, dest, nargs=0, **kwargs)
def __call__(self, parser, namespace, values, option_string=None):
setattr(namespace, self.dest, not option_string.startswith("--no"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment