Remove has_key() references from idlelib. IDLE still doesn't run due

to relative import issues.  Any volunteers?
This commit is contained in:
Guido van Rossum 2006-08-22 15:45:46 +00:00
parent d204a715f4
commit 811c4e0b7c
11 changed files with 20 additions and 20 deletions

View file

@ -187,7 +187,7 @@ class _ComplexBinder:
seq, handler)))
def bind(self, triplet, func):
if not self.bindedfuncs.has_key(triplet[2]):
if triplet[2] not in self.bindedfuncs:
self.bindedfuncs[triplet[2]] = [[] for s in _states]
for s in _states:
lists = [ self.bindedfuncs[detail][i]