Mercurial > cpython-lru_cache-weakref
diff Lib/idlelib/PathBrowser.py @ 39634:d91585b2cdc1
Remove has_key() references from idlelib. IDLE still doesn't run due
to relative import issues. Any volunteers?
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 22 Aug 2006 15:45:46 +0000 |
| parents | 29be871bd876 |
| children | eab361617f6a 4bbbe0c55fa2 |
line wrap: on
line diff
--- a/Lib/idlelib/PathBrowser.py Tue Aug 22 13:41:17 2006 +0000 +++ b/Lib/idlelib/PathBrowser.py Tue Aug 22 15:45:46 2006 +0000 @@ -78,7 +78,7 @@ 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)
