From 9790f2d500244047dedc7dd9f87b6471e0889be5 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Wed, 18 Apr 2018 00:20:52 +0300 Subject: Made Python module match the new init interface. --- mesonbuild/modules/python.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mesonbuild/modules/python.py') 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) -- cgit v1.1