Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2024-12-13 15:50:27 +0100
committerCristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2024-12-18 10:08:10 +0100
commit382a34586f73896d12063616eb8b31474c03f68a (patch)
treec33f9c01713fe2083351beade9d9536527712814 /build_scripts/options.py
parent03a3e61b0cce28c44b68b032cff2e6b8fa869477 (diff)
Remove unnecessary use of 'object' in class constructionremoteobjectsdev
Considering we are not compatible with Python 2 anymore, we can drop the 'object' explicit inheritance in the class declaration. Pick-to: 6.8 Change-Id: Iac3a95aa9721c3ff1a755f457c0936ca157a8470 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'build_scripts/options.py')
-rw-r--r--build_scripts/options.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/build_scripts/options.py b/build_scripts/options.py
index dae72faa2..5963a3982 100644
--- a/build_scripts/options.py
+++ b/build_scripts/options.py
@@ -41,7 +41,7 @@ def _warn_deprecated_option(option, replacement=None):
log.warning(w)
-class Options(object, metaclass=Singleton):
+class Options(metaclass=Singleton):
def __init__(self):
# Dictionary containing values of all the possible options.
@@ -181,7 +181,7 @@ class Options(object, metaclass=Singleton):
}
-class CommandMixin(object):
+class CommandMixin:
"""Mixin for the setuptools build/install commands handling the options."""
_static_class_finalized_once = False