tools/microcode-tool.py: Disable some new pylint warnings
PATCH 1/1 tools/microcode-tool.py: Disable some new pylint warnings
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(+)
tools/microcode-tool.py +2 -0
@@ -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:
Signature · 1 line
2.43.0