diff --git a/Lib/collections.py b/Lib/collections.py index 28a2abf44f8..83d928cf90c 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(OrderedDict()): + for k in vars(self.__class__()): inst_dict.pop(k, None) if inst_dict: return (self.__class__, (items,), inst_dict)