commit | 25458f155a285c60e71e4966bb1b1f6fdfaf7bb1 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Tue Apr 19 17:17:51 2011 -0700 |
committer | Raymond Hettinger <python@rcn.com> | Tue Apr 19 17:17:51 2011 -0700 |
tree | 93718559cd6afcb6b883d178d5b32ec565c7c18e | |
parent | a947abec6af2df6d718da16ab1297343c98ff858 [diff] | |
parent | d07eaf177c7d43a2479c1eb1fbab55e26e3822fa [diff] |
Issue #11875: Alter the previous fix to work better with subclasses
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 @@ '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)