Remove unnecessary __init__ methods.

pull/1810/head
Elliott Sales de Andrade 8 years ago
parent 65b1d33931
commit faf114299b
  1. 3
      mesonbuild/compilers.py
  2. 3
      mesonbuild/mconf.py
  3. 3
      run_project_tests.py

@ -329,8 +329,7 @@ def build_unix_rpath_args(build_dir, rpath_paths, install_rpath):
return ['-Wl,-rpath,' + paths] return ['-Wl,-rpath,' + paths]
class CrossNoRunException(MesonException): class CrossNoRunException(MesonException):
def __init(self, *args, **kwargs): pass
Exception.__init__(self, *args, **kwargs)
class RunResult: class RunResult:
def __init__(self, compiled, returncode=999, stdout='UNDEFINED', stderr='UNDEFINED'): def __init__(self, compiled, returncode=999, stdout='UNDEFINED', stderr='UNDEFINED'):

@ -26,8 +26,7 @@ parser.add_argument('--clearcache', action='store_true', default=False,
help='Clear cached state (e.g. found dependencies)') help='Clear cached state (e.g. found dependencies)')
class ConfException(mesonlib.MesonException): class ConfException(mesonlib.MesonException):
def __init__(self, *args, **kwargs): pass
super().__init__(*args, **kwargs)
class Conf: class Conf:
def __init__(self, build_dir): def __init__(self, build_dir):

@ -66,9 +66,6 @@ class DummyFuture(conc.Future):
ask for the result. Used on platforms where sem_open() is not available: ask for the result. Used on platforms where sem_open() is not available:
MSYS2, OpenBSD, etc: https://bugs.python.org/issue3770 MSYS2, OpenBSD, etc: https://bugs.python.org/issue3770
''' '''
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
def set_function(self, fn, *args, **kwargs): def set_function(self, fn, *args, **kwargs):
self.fn = fn self.fn = fn
self.fn_args = args self.fn_args = args

Loading…
Cancel
Save