Skip to content

Commit bc11209

Browse files
committed
Minor change in previous patch
1 parent dfdc5c0 commit bc11209

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

pep8.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -967,10 +967,8 @@ def python_3000_has_key(logical_line, noqa):
967967
Okay: if "alph" in d:\n print d["alph"]
968968
W601: assert d.has_key('alph')
969969
"""
970-
if noqa:
971-
return
972970
pos = logical_line.find('.has_key(')
973-
if pos > -1:
971+
if pos > -1 and not noqa:
974972
yield pos, "W601 .has_key() is deprecated, use 'in'"
975973

976974

0 commit comments

Comments
 (0)