E580 Issue #11875: Alter the previous fix to work better with subclasses · python/cpython@c98556e · GitHub
[go: up one dir, main page]

Skip to content

Commit c98556e

Browse files
committed
Issue #11875: Alter the previous fix to work better with subclasses
1 parent b492378 commit c98556e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/collections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def __reduce__(self):
116116
'Return state information for 6136 pickling'
117117
items = [[k, self[k]] for k in self]
118118
inst_dict = vars(self).copy()
119-
for k in vars(self.__class__()):
119+
for k in vars(OrderedDict()):
120120
inst_dict.pop(k, None)
121121
if inst_dict:
122122
return (self.__class__, (items,), inst_dict)

0 commit comments

Comments
 (0)
0