Skip to contentSkip to conversation

tools/microcode-tool.py: Disable some new pylint warnings

PATCH New Tom Rini 1 participant 1 message Feb 12, 2025

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

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.

---
Cc: Simon Glass <[email protected]>

---
 tools/microcode-tool.py | 2 ++
 1 file changed, 2 insertions(+)
tools/microcode-tool.py +2 -0
index 24c02c4fca14..9acf14f7915c 100755
@@ -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