From fbabe8ad85725762e46b7c4c2f2c680c3351ec80 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 8 Jan 2017 22:47:57 +0200 Subject: There are two different kinds of extensions: modules that create new objects directly and snippets that just call into interpreter methods. --- mesonbuild/modules/i18n.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'mesonbuild/modules/i18n.py') diff --git a/mesonbuild/modules/i18n.py b/mesonbuild/modules/i18n.py index fa52463a7..5738cb3c4 100644 --- a/mesonbuild/modules/i18n.py +++ b/mesonbuild/modules/i18n.py @@ -12,13 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. +import sys +import shutil + from os import path from .. import coredata, mesonlib, build from ..mesonlib import MesonException from . import ModuleReturnValue - -import sys -import shutil +from . import ExtensionModule PRESET_ARGS = { 'glib': [ @@ -46,7 +47,7 @@ PRESET_ARGS = { ] } -class I18nModule: +class I18nModule(ExtensionModule): def merge_file(self, state, args, kwargs): podir = kwargs.pop('po_dir', None) -- cgit v1.2.3