summaryrefslogtreecommitdiff
path: root/src/buildstream/_options/optionflags.py
diff options
context:
space:
mode:
authorAngelos Evripiotis <jevripiotis@bloomberg.net>2019-06-11 17:28:17 +0100
committerAngelos Evripiotis <jevripiotis@bloomberg.net>2019-06-12 08:43:20 +0100
commitbc98cc1875156eeee842f9c651b81a163b2c11dd (patch)
tree2446e3f2c877bd92a8fdf399ceec6b34e74a7404 /src/buildstream/_options/optionflags.py
parent8900b02225024a5a0be5bfe59a23318b708bece7 (diff)
downloadbuildstream-bc98cc1875156eeee842f9c651b81a163b2c11dd.tar.gz
Refactor 'super(cls, self)' -> 'super()'aevri/supersuper
For most use-cases with modern Python, it's not necessary to supply the 'type' or 'object-or-type' arguments to super(). Replace all our instances with arg-less super, which is less error-prone. https://docs.python.org/3.5/library/functions.html#super
Diffstat (limited to 'src/buildstream/_options/optionflags.py')
-rw-r--r--src/buildstream/_options/optionflags.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/_options/optionflags.py b/src/buildstream/_options/optionflags.py
index 0271208d9..ba16244ba 100644
--- a/src/buildstream/_options/optionflags.py
+++ b/src/buildstream/_options/optionflags.py
@@ -31,7 +31,7 @@ class OptionFlags(Option):
OPTION_TYPE = 'flags'
def load(self, node, allow_value_definitions=True):
- super(OptionFlags, self).load(node)
+ super().load(node)
valid_symbols = OPTION_SYMBOLS + ['default']
if allow_value_definitions: