[Python-checkins] cpython (3.1): Issue #11875: Alter the previous fix to work better with subclasses
raymond.hettinger
python-checkins at python.org
Wed Apr 20 02:19:26 CEST 2011
http://hg.python.org/cpython/rev/408f23b6cec5
changeset: 69460:408f23b6cec5
branch: 3.1
parent: 69453:fb261fa85429
user: Raymond Hettinger <python at rcn.com>
date: Tue Apr 19 17:17:23 2011 -0700
summary:
Issue #11875: Alter the previous fix to work better with subclasses
files:
Lib/collections.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/collections.py b/Lib/collections.py
--- a/Lib/collections.py
+++ b/Lib/collections.py
@@ -102,7 +102,7 @@
'Return state information for pickling'
items = [[k, self[k]] for k in self]
inst_dict = vars(self).copy()
- for k in vars(self.__class__()):
+ for k in vars(OrderedDict()):
inst_dict.pop(k, None)
if inst_dict:
return (self.__class__, (items,), inst_dict)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list