mirror of
https://github.com/python/cpython.git
synced 2025-09-17 06:06:25 +00:00
replace has_key with 'in' operator
This commit is contained in:
parent
de0559998f
commit
6e3dbbdf39
29 changed files with 71 additions and 71 deletions
|
@ -124,7 +124,7 @@ class Ignore:
|
|||
self._ignore = { '<string>': 1 }
|
||||
|
||||
def names(self, filename, modulename):
|
||||
if self._ignore.has_key(modulename):
|
||||
if modulename in self._ignore:
|
||||
return self._ignore[modulename]
|
||||
|
||||
# haven't seen this one before, so see if the module name is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue