mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +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
|
@ -78,7 +78,7 @@ class DirBrowserTreeItem(TreeItem):
|
|||
normed_name = os.path.normcase(name)
|
||||
if normed_name[i:] == suff:
|
||||
mod_name = name[:i]
|
||||
if not modules.has_key(mod_name):
|
||||
if mod_name not in modules:
|
||||
modules[mod_name] = None
|
||||
sorted.append((normed_name, name))
|
||||
allnames.remove(name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue