mirror of
https://github.com/python/cpython.git
synced 2025-09-17 22:20:23 +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
|
@ -185,7 +185,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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue