avoid a py3k warning from __hash__

This commit is contained in:
Benjamin Peterson 2010-01-28 02:18:25 +00:00
parent e06f7114a2
commit 11fab6c07d
1 changed files with 1 additions and 0 deletions

View File

@ -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: