avoid a py3k warning from __hash__
This commit is contained in:
parent
e06f7114a2
commit
11fab6c07d
|
@ -13,6 +13,7 @@ class UserDict(object):
|
|||
return cmp(self.data, dict.data)
|
||||
else:
|
||||
return cmp(self.data, dict)
|
||||
__hash__ = None # Avoid Py3k warning
|
||||
def __len__(self): return len(self.data)
|
||||
def __getitem__(self, key):
|
||||
if key in self.data:
|
||||
|
|
Loading…
Reference in New Issue