Mercurial > cpython-lru_cache-weakref
diff Lib/idlelib/FileList.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 | 066c7890cd61 |
| children | 4cdf21a0dbbc |
line wrap: on
line diff
--- a/Lib/idlelib/FileList.py Tue Aug 22 13:41:17 2006 +0000 +++ b/Lib/idlelib/FileList.py Tue Aug 22 15:45:46 2006 +0000 @@ -25,7 +25,7 @@ master=self.root) return None key = os.path.normcase(filename) - if self.dict.has_key(key): + if key in self.dict: edit = self.dict[key] edit.top.wakeup() return edit @@ -79,7 +79,7 @@ newkey = os.path.normcase(filename) if newkey == key: return - if self.dict.has_key(newkey): + if newkey in self.dict: conflict = self.dict[newkey] self.inversedict[conflict] = None tkMessageBox.showerror(
