@stringArgs
@noKwargs
def func_import(self, node, args, kwargs):
    if (len(args) != 1):
        raise InvalidCode('Import takes one argument.')
    modname = args[0]
    if modname.startswith('unstable-'):
        plainname = modname.split('-', 1)[1]
        mlog.warning(('Module %s has no backwards or forwards compatibility and might not exist in future releases.' % modname), location=node)
        modname = ('unstable_' + plainname)
    if (modname not in self.modules):
        try:
            module = importlib.import_module(('mesonbuild.modules.' + modname))
        except ImportError:
            raise InvalidArguments(('Module "%s" does not exist' % (modname,)))
        self.modules[modname] = module.initialize(self)
    return ModuleHolder(modname, self.modules[modname], self)
@stringArgs
@noKwargs
def func_import(self, node, args, kwargs):
    if (len(args) != 1):
        raise InvalidCode('Import takes one argument.')
    modname = args[0]
    if modname.startswith('unstable-'):
        plainname = modname.split('-', 1)[1]
        mlog.warning(('Module %s has no backwards or forwards compatibility and might not exist in future releases.' % modname), location=node)
        modname = ('unstable_' + plainname)
    if (modname not in self.modules):
        try:
            module = importlib.import_module(('mesonbuild.modules.' + modname))
        except ImportError:
            raise InvalidArguments(('Module "%s" does not exist' % (modname,)))
        self.modules[modname] = module.initialize(self)
    return ModuleHolder(modname, self.modules[modname], self)