diff options
author | Raymond Hettinger <python@rcn.com> | 2011-04-19 23:53:07 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2011-04-19 23:53:07 (GMT) |
commit | c98556e72e3850532fb0801af4f6ca83e920fa54 (patch) | |
tree | 8b4ad17b08808498f4fc9d68d77b14e2377c9ba8 /Lib/collections.py | |
parent | b4923786fa7671d1bfeca5fc1692a11eb9beb488 (diff) | |
download | cpython-c98556e72e3850532fb0801af4f6ca83e920fa54.zip cpython-c98556e72e3850532fb0801af4f6ca83e920fa54.tar.gz cpython-c98556e72e3850532fb0801af4f6ca83e920fa54.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 83d928c..28a2abf 100644 --- a/Lib/collections.py +++ b/Lib/collections.py @@ -116,7 +116,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) |