Skip to content

Commit 302767b

Browse files
committed
Fix frozendict.__reduce_ex__()
1 parent 4a1a504 commit 302767b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/typeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8010,7 +8010,7 @@ reduce_newobj(PyObject *obj)
80108010
return NULL;
80118011
}
80128012

8013-
state = object_getstate(obj, !(hasargs || PyList_Check(obj) || PyDict_Check(obj)));
8013+
state = object_getstate(obj, !(hasargs || PyList_Check(obj) || _PyAnyDict_Check(obj)));
80148014
if (state == NULL) {
80158015
Py_DECREF(newobj);
80168016
Py_DECREF(newargs);

0 commit comments

Comments
 (0)