Removes old, duplicate 'has_key'
This commit is contained in:
parent
ce4d00deb9
commit
2562efc9af
|
@ -76,13 +76,6 @@ class multi_key_dict(object):
|
|||
""" Return the value at index specified as key."""
|
||||
return self.items_dict[self.__dict__[str(type(key))][key]]
|
||||
|
||||
def has_key(self, key):
|
||||
try:
|
||||
self.__getitem__(key)
|
||||
return True
|
||||
except:
|
||||
pass
|
||||
|
||||
def __setitem__(self, keys, value):
|
||||
""" Set the value at index (or list of indexes) specified as keys.
|
||||
Note, that if multiple key list is specified, either:
|
||||
|
|
Loading…
Reference in New Issue