diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py index fa06ae99e..a325600e4 100644 --- a/mesonbuild/compilers.py +++ b/mesonbuild/compilers.py @@ -329,8 +329,7 @@ def build_unix_rpath_args(build_dir, rpath_paths, install_rpath): return ['-Wl,-rpath,' + paths] class CrossNoRunException(MesonException): - def __init(self, *args, **kwargs): - Exception.__init__(self, *args, **kwargs) + pass class RunResult: def __init__(self, compiled, returncode=999, stdout='UNDEFINED', stderr='UNDEFINED'): diff --git a/mesonbuild/mconf.py b/mesonbuild/mconf.py index 585e11cd5..55860a483 100644 --- a/mesonbuild/mconf.py +++ b/mesonbuild/mconf.py @@ -26,8 +26,7 @@ parser.add_argument('--clearcache', action='store_true', default=False, help='Clear cached state (e.g. found dependencies)') class ConfException(mesonlib.MesonException): - def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) + pass class Conf: def __init__(self, build_dir): diff --git a/run_project_tests.py b/run_project_tests.py index ab8e3ae41..e9f19420a 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -66,9 +66,6 @@ class DummyFuture(conc.Future): ask for the result. Used on platforms where sem_open() is not available: MSYS2, OpenBSD, etc: https://bugs.python.org/issue3770 ''' - def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) - def set_function(self, fn, *args, **kwargs): self.fn = fn self.fn_args = args