Kaydet (Commit) 11fab6c0 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

avoid a py3k warning from __hash__

üst e06f7114
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment