Skip to content

Commit 3eae7cb

Browse files
fmt
1 parent 0280559 commit 3eae7cb

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pythoncapi_compat.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2667,16 +2667,13 @@ PyUnstable_Unicode_GET_CACHED_HASH(PyObject *op)
26672667
static inline int
26682668
PyUnstable_SetImmortal(PyObject *op)
26692669
{
2670-
#if 0x030E0000 <= PY_VERSION_HEX
2671-
PyAPI_FUNC(void) _Py_SetImmortal(PyObject *op);
2672-
#else
2673-
26742670
assert(op != NULL);
26752671
if (!PyUnstable_Object_IsUniquelyReferenced(op) || PyUnicode_Check(op)) {
26762672
return 0;
26772673
}
26782674
#if 0x030E0000 <= PY_VERSION_HEX
2679-
_Py_SetImmortal(op);
2675+
PyAPI_FUNC(void) _Py_SetImmortal(PyObject *op);
2676+
_Py_SetImmortal(op);
26802677
#else
26812678
// Python 3.13 doesn't export _Py_SetImmortal() function
26822679
if (PyObject_GC_IsTracked(op)) {

0 commit comments

Comments
 (0)