mirror of
https://github.com/python/cpython.git
synced 2024-11-29 04:44:13 +08:00
Don't define has_key().
This commit is contained in:
parent
2043513bd5
commit
48563e840b
@ -37,8 +37,6 @@ class CanvasItem:
|
||||
'itemconfigure',
|
||||
(self.id,))))
|
||||
return self._keys
|
||||
def has_key(self, key):
|
||||
return key in self.keys()
|
||||
def __contains__(self, key):
|
||||
return key in self.keys()
|
||||
def addtag(self, tag, option='withtag'):
|
||||
|
Loading…
Reference in New Issue
Block a user