Mercurial > cpython-lru_cache-weakref
diff Lib/idlelib/ObjectBrowser.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 | 71a294bd7950 |
| children | 3667d1a8c916 |
line wrap: on
line diff
--- a/Lib/idlelib/ObjectBrowser.py Tue Aug 22 13:41:17 2006 +0000 +++ b/Lib/idlelib/ObjectBrowser.py Tue Aug 22 15:45:46 2006 +0000 @@ -126,7 +126,7 @@ def make_objecttreeitem(labeltext, object, setfunction=None): t = type(object) - if dispatch.has_key(t): + if t in dispatch: c = dispatch[t] else: c = ObjectTreeItem
