swapped "is" for "==" in literal comparison
update lint-python.sh to include check F632
This commit is contained in:
1 parent
7e373294a5
commit
b6121edf70
2 files changed
+2
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user