Skip to content

Commit 0ed7a91

Browse files
committed
REF: Update threading compatibility configuration in internals.pyx
1 parent 474b776 commit 0ed7a91

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/_libs/internals.pyx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ from pandas._libs.util cimport (
2626
is_integer_object,
2727
)
2828

29-
IF 0:
30-
include "free_threading_config.pxi"
29+
# At the top of the file:
30+
DEF CYTHON_COMPATIBLE_WITH_FREE_THREADING = False # Or import from external config as needed
3131

3232
IF CYTHON_COMPATIBLE_WITH_FREE_THREADING:
3333
from cpython.ref cimport Py_DECREF
3434
from cpython.weakref cimport PyWeakref_GetRef
35-
ELSE:
35+
else:
3636
from cpython.weakref cimport PyWeakref_GetObject
37-
37+
3838

3939
cdef extern from "Python.h":
4040
PyObject* Py_None

0 commit comments

Comments
 (0)