diff options
| author | Tristan Partin <tristan@partin.io> | 2023-08-09 19:30:52 -0500 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2023-10-04 15:10:16 -0400 |
| commit | 87993b8210bf923d7120c7442fe987cdb04e6b12 (patch) | |
| tree | 91c325644a7eb974b1e10a0b60f7f6a5e8ad5111 | |
| parent | 54c30c96a041a33f708a36c7e5b2a4ecf096d3dc (diff) | |
| download | meson-87993b8210bf923d7120c7442fe987cdb04e6b12.tar.gz | |
Move modtest to the new extension module API
| -rw-r--r-- | mesonbuild/modules/modtest.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/modules/modtest.py b/mesonbuild/modules/modtest.py index 15f823778..5c2584061 100644 --- a/mesonbuild/modules/modtest.py +++ b/mesonbuild/modules/modtest.py @@ -15,7 +15,7 @@ from __future__ import annotations import typing as T -from . import ExtensionModule, ModuleInfo +from . import NewExtensionModule, ModuleInfo from ..interpreterbase import noKwargs, noPosargs if T.TYPE_CHECKING: @@ -24,12 +24,12 @@ if T.TYPE_CHECKING: from ..interpreterbase.baseobjects import TYPE_kwargs, TYPE_var -class TestModule(ExtensionModule): +class TestModule(NewExtensionModule): INFO = ModuleInfo('modtest') def __init__(self, interpreter: Interpreter) -> None: - super().__init__(interpreter) + super().__init__() self.methods.update({ 'print_hello': self.print_hello, }) |
