commit | 7cb5ec0e60a51a4d6269ae03d2ff24fab3dc1c8a | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Tue Apr 19 09:52:21 2011 -0700 |
committer | Raymond Hettinger <python@rcn.com> | Tue Apr 19 09:52:21 2011 -0700 |
tree | 803160df8d277f0e7e6b9906e981206be14934ae | |
parent | e0156c43daf5a5bd36020f57f8a2f6af0b384026 [diff] |
Use a generic class lookup.
diff --git a/Lib/collections.py b/Lib/collections.py index 28a2abf..83d928c 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(OrderedDict()): + for k in vars(self.__class__()): inst_dict.pop(k, None) if inst_dict: return (self.__class__, (items,), inst_dict)