summaryrefslogtreecommitdiffstats
path: root/Lib/collections.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2011-04-20 00:17:51 (GMT)
committerRaymond Hettinger <python@rcn.com>2011-04-20 00:17:51 (GMT)
commit25458f155a285c60e71e4966bb1b1f6fdfaf7bb1 (patch)
tree93718559cd6afcb6b883d178d5b32ec565c7c18e /Lib/collections.py
parenta947abec6af2df6d718da16ab1297343c98ff858 (diff)
parentd07eaf177c7d43a2479c1eb1fbab55e26e3822fa (diff)
downloadcpython-25458f155a285c60e71e4966bb1b1f6fdfaf7bb1.zip
cpython-25458f155a285c60e71e4966bb1b1f6fdfaf7bb1.tar.gz
cpython-25458f155a285c60e71e4966bb1b1f6fdfaf7bb1.tar.bz2
Issue #11875: Alter the previous fix to work better with subclasses
Diffstat (limited to 'Lib/collections.py')
-rw-r--r--Lib/collections.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/collections.py b/Lib/collections.py
index a1f7890..77ba11b 100644
--- a/Lib/collections.py
+++ b/Lib/collections.py
@@ -155,7 +155,7 @@ class OrderedDict(dict):
'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)