From 11fab6c07dbd40326a59e9d853f5b093e83e3836 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 28 Jan 2010 02:18:25 +0000 Subject: [PATCH] avoid a py3k warning from __hash__ --- Lib/UserDict.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/UserDict.py b/Lib/UserDict.py index df5f7fbe49e..0497f65d1db 100644 --- a/Lib/UserDict.py +++ b/Lib/UserDict.py @@ -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: