diff options
author | Simon Warta <[email protected]> | 2017-03-07 23:19:34 +0100 |
---|---|---|
committer | Simon Warta <[email protected]> | 2017-03-08 23:33:34 +0100 |
commit | 8c34620623b3db5f19682718c56d1382ace41e12 (patch) | |
tree | a52617c3d429b19f0e03787e64794f4dc52f6b8f | |
parent | 0d3601e95ac10d096163c7bd0895e963ea315dd6 (diff) |
pylint: use lex return value in ModulePolicyInfo
-rwxr-xr-x | configure.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/configure.py b/configure.py index 5394486b7..791bde94f 100755 --- a/configure.py +++ b/configure.py @@ -806,23 +806,26 @@ class ModuleInfo(InfoObject): return 0 return 1 + class ModulePolicyInfo(InfoObject): def __init__(self, infofile): super(ModulePolicyInfo, self).__init__(infofile) - lex_me_harder(infofile, self, - ['required', 'if_available', 'prohibited'], {}) + self.lex = lex_me_harder( + infofile, + None, + ['required', 'if_available', 'prohibited'], + {}) def cross_check(self, modules): - def check(tp, lst): for mod in lst: if mod not in modules: logging.error("Module policy %s includes non-existent module %s in <%s>" % ( self.infofile, mod, tp)) - check('required', self.required) - check('if_available', self.if_available) - check('prohibited', self.prohibited) + check('required', self.lex.required) + check('if_available', self.lex.if_available) + check('prohibited', self.lex.prohibited) class ArchInfo(InfoObject): |