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

update lint-python.sh to include check F632
This commit is contained in:
Tyler Chambers committed 2020-11-09 10:21:51 -05:00
1 parent 7e373294a5
commit b6121edf70
2 files changed
+2 -1

No files matched your search

+1 -1
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