diff options
author | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2017-05-17 03:54:49 -0400 |
---|---|---|
committer | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2017-05-17 03:54:49 -0400 |
commit | faf114299bd6e2ac9c5569493d1974f2de41e13b (patch) | |
tree | d7ae6402c61a143687b6e6d7b801b989fcf79fb3 | |
parent | 65b1d339310b2e8d7304d9b2f394bfb968b6c55b (diff) | |
download | meson-faf114299bd6e2ac9c5569493d1974f2de41e13b.zip meson-faf114299bd6e2ac9c5569493d1974f2de41e13b.tar.gz meson-faf114299bd6e2ac9c5569493d1974f2de41e13b.tar.bz2 |
Remove unnecessary __init__ methods.
-rw-r--r-- | mesonbuild/compilers.py | 3 | ||||
-rw-r--r-- | mesonbuild/mconf.py | 3 | ||||
-rwxr-xr-x | run_project_tests.py | 3 |
3 files changed, 2 insertions, 7 deletions
diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py index fa06ae9..a325600 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 585e11c..55860a4 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 ab8e3ae..e9f1942 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 |