diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-04-18 00:20:52 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-04-18 00:20:52 +0300 |
commit | 9790f2d500244047dedc7dd9f87b6471e0889be5 (patch) | |
tree | 0cd6b7dc91a15abfc41efd8e271c0f5d7de8a40d /mesonbuild/modules/python.py | |
parent | 92487ea33db9d882929d755308853d2ed82abd0d (diff) | |
download | meson-9790f2d500244047dedc7dd9f87b6471e0889be5.zip meson-9790f2d500244047dedc7dd9f87b6471e0889be5.tar.gz meson-9790f2d500244047dedc7dd9f87b6471e0889be5.tar.bz2 |
Made Python module match the new init interface.
Diffstat (limited to 'mesonbuild/modules/python.py')
-rw-r--r-- | mesonbuild/modules/python.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py index b0d1310..16bdfd6 100644 --- a/mesonbuild/modules/python.py +++ b/mesonbuild/modules/python.py @@ -359,8 +359,8 @@ class PythonInstallation(ExternalProgramHolder, InterpreterObject): class PythonModule(ExtensionModule): - def __init__(self): - super().__init__() + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) self.snippets.add('find_installation') # https://www.python.org/dev/peps/pep-0397/ @@ -429,5 +429,5 @@ class PythonModule(ExtensionModule): return res -def initialize(): - return PythonModule() +def initialize(*args, **kwargs): + return PythonModule(*args, **kwargs) |