summaryrefslogtreecommitdiffstats
path: root/Lib/collections.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2011-04-20 00:17:23 (GMT)
committerRaymond Hettinger <python@rcn.com>2011-04-20 00:17:23 (GMT)
commitd07eaf177c7d43a2479c1eb1fbab55e26e3822fa (patch)
tree57b49adcc633dd9600d6c27d6fcefdc35a9a6f7d /Lib/collections.py
parent8dfcab0885bd5de2889aae230b973ae797d3f1c2 (diff)
downloadcpython-d07eaf177c7d43a2479c1eb1fbab55e26e3822fa.zip
cpython-d07eaf177c7d43a2479c1eb1fbab55e26e3822fa.tar.gz
cpython-d07eaf177c7d43a2479c1eb1fbab55e26e3822fa.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 5ae5907..79912ec 100644
--- a/Lib/collections.py
+++ b/Lib/collections.py
@@ -102,7 +102,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)