File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ def get_ELF_program_headers(executable):
62
62
splitline = [x .strip () for x in line .split ()]
63
63
flags = splitline [ofs_flags ]
64
64
# check for 'R', ' E'
65
- if splitline [ofs_flags + 1 ] is 'E' :
65
+ if splitline [ofs_flags + 1 ] == 'E' :
66
66
flags += ' E'
67
67
headers .append ((typ , flags , []))
68
68
count += 1
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ enabled=(
55
55
F621 # too many expressions in an assignment with star-unpacking
56
56
F622 # two or more starred expressions in an assignment (a, *b, *c = d)
57
57
F631 # assertion test is a tuple, which are always True
58
+ F632 # use ==/!= to compare str, bytes, and int literals
58
59
F701 # a break statement outside of a while or for loop
59
60
F702 # a continue statement outside of a while or for loop
60
61
F703 # a continue statement in a finally block in a loop
You can’t perform that action at this time.
0 commit comments