With a newer pylint it is no longer happy with parser.error('....')
(which will cause the program to exit with an exit status of 2) as
sufficient to ensure we won't reference some variables before
assignment. Disable these warnings here.Signed-off-by: Tom Rini <[email protected]> --- Cc: Simon Glass <[email protected]> --- tools/microcode-tool.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/microcode-tool.py b/tools/microcode-tool.py index 24c02c4fca14..9acf14f7915c 100755 --- a/tools/microcode-tool.py +++ b/tools/microcode-tool.py @@ -287,8 +287,10 @@ def MicrocodeTool(): parser.error('You must specify a microcode file (or header files)') if cmd == 'list': + # pylint: disable=locally-disabled, possibly-used-before-assignment List(date, microcodes, options.model) elif cmd == 'license': + # pylint: disable=locally-disabled, possibly-used-before-assignment print('\n'.join(license_text)) elif cmd == 'create': if not options.model: -- 2.43.0

