diff options
author | Raymond Hettinger <python@rcn.com> | 2011-04-20 00:17:51 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2011-04-20 00:17:51 (GMT) |
commit | 25458f155a285c60e71e4966bb1b1f6fdfaf7bb1 (patch) | |
tree | 93718559cd6afcb6b883d178d5b32ec565c7c18e /Lib/collections.py | |
parent | a947abec6af2df6d718da16ab1297343c98ff858 (diff) | |
parent | d07eaf177c7d43a2479c1eb1fbab55e26e3822fa (diff) | |
download | cpython-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.py | 2 |
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) |