diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-12-24 12:34:55 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-12-29 16:45:28 +0200 |
commit | b402734e5ae2b35c0e38381864a9b24c129b03bf (patch) | |
tree | 85513ccc8030359c6e459da552a545c43eace3fd /utils | |
parent | 6ef7eddfd4833095d5ad93e523c414fab66aff90 (diff) |
utils: checkstyle.py: Drop arguments to super() when possible
The super() call is a shortcut syntax for super(__class__, <first arg>).
Drop the arguments when they match the default.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/checkstyle.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/checkstyle.py b/utils/checkstyle.py index 7225cac4..c04bf385 100755 --- a/utils/checkstyle.py +++ b/utils/checkstyle.py @@ -198,7 +198,7 @@ _style_checkers = [] class StyleCheckerRegistry(type): def __new__(cls, clsname, bases, attrs): - newclass = super(StyleCheckerRegistry, cls).__new__(cls, clsname, bases, attrs) + newclass = super().__new__(cls, clsname, bases, attrs) if clsname != 'StyleChecker': _style_checkers.append(newclass) return newclass @@ -387,7 +387,7 @@ _formatters = [] class FormatterRegistry(type): def __new__(cls, clsname, bases, attrs): - newclass = super(FormatterRegistry, cls).__new__(cls, clsname, bases, attrs) + newclass = super().__new__(cls, clsname, bases, attrs) if clsname != 'Formatter': _formatters.append(newclass) return newclass |