commit | c98556e72e3850532fb0801af4f6ca83e920fa54 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Tue Apr 19 16:53:07 2011 -0700 |
committer | Raymond Hettinger <python@rcn.com> | Tue Apr 19 16:53:07 2011 -0700 |
tree | 8b4ad17b08808498f4fc9d68d77b14e2377c9ba8 | |
parent | b4923786fa7671d1bfeca5fc1692a11eb9beb488 [diff] |
Issue #11875: Alter the previous fix to work better with subclasses
diff --git a/Lib/collections.py b/Lib/collections.py index 83d928c..28a2abf 100644 --- a/Lib/collections.py +++ b/Lib/collections.py
@@ -116,7 +116,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)