[Python-checkins] cpython (merge 3.2 -> default): Issue #11875: Alter the previous fix to work better with subclasses
raymond.hettinger
python-checkins at python.org
Wed Apr 20 02:19:28 CEST 2011
http://hg.python.org/cpython/rev/64968d226b61
changeset: 69462:64968d226b61
parent: 69458:bc1c6bd7eeb0
parent: 69461:4e6840477d96
user: Raymond Hettinger <python at rcn.com>
date: Tue Apr 19 17:19:11 2011 -0700
summary:
Issue #11875: Alter the previous fix to work better with subclasses
files:
Lib/collections/__init__.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py
--- a/Lib/collections/__init__.py
+++ b/Lib/collections/__init__.py
@@ -156,7 +156,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