Skip to content

Commit 4b0d2fe

Browse files
committed
Fix for default build.
1 parent d4c0df3 commit 4b0d2fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Objects/typeobject.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5930,9 +5930,11 @@ find_name_in_mro(PyTypeObject *type, PyObject *name, int *error)
59305930
}
59315931
}
59325932

5933+
#ifdef Py_GIL_DISABLED
59335934
if (!_Py_IsOwnedByCurrentThread(mro)) {
59345935
PyUnstable_Object_EnableDeferredRefcount(mro);
59355936
}
5937+
#endif
59365938

59375939
PyObject *res = NULL;
59385940
Py_ssize_t n = PyTuple_GET_SIZE(mro);

0 commit comments

Comments
 (0)