swapped "is" for "==" in literal comparison

update lint-python.sh to include check F632
This commit is contained in:
Tyler Chambers
2020-11-08 16:35:13 -05:00
parent 7e373294a5
commit b6121edf70
2 changed files with 2 additions and 1 deletions

View File

@@ -62,7 +62,7 @@ def get_ELF_program_headers(executable):
splitline = [x.strip() for x in line.split()]
flags = splitline[ofs_flags]
# check for 'R', ' E'
if splitline[ofs_flags + 1] is 'E':
if splitline[ofs_flags + 1] == 'E':
flags += ' E'
headers.append((typ, flags, []))
count += 1