theopolis / uefi-firmware-parser

Parse BIOS/Intel ME/UEFI firmware related structures: Volumes, FileSystems, Files, etc
Other
780 stars 156 forks source link

38: SyntaxWarning: "is not" with a literal. Did you mean "!="? if parser.type() is not 'unknown': #95

Closed startergo closed 2 years ago

startergo commented 3 years ago
uefi-firmware-parser --test ~/Downloads/*
/usr/local/bin/uefi-firmware-parser:38: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if parser.type() is not 'unknown':
/usr/local/bin/uefi-firmware-parser:141: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if parser.type() is 'unknown':
startergo commented 3 years ago
uefi-firmware-parser --superbrute /Users/g5/Downloads/MP51_007F_03B_LOCKED.bin
/usr/local/bin/uefi-firmware-parser:38: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if parser.type() is not 'unknown':
/usr/local/bin/uefi-firmware-parser:141: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if parser.type() is 'unknown':
Traceback (most recent call last):
  File "/usr/local/bin/uefi-firmware-parser", line 128, in <module>
    superbrute_search(input_data)
  File "/usr/local/bin/uefi-firmware-parser", line 36, in superbrute_search
    bdata = buffer(data, i)
NameError: name 'buffer' is not defined