Skip to content

Commit e4ce835

Browse files
Remove the_ prefix
1 parent cca1bd5 commit e4ce835

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Modules/atexitmodule.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,20 +151,20 @@ atexit_callfuncs(struct atexit_state *state)
151151
}
152152

153153
// bpo-46025: Increment the refcount of cb->func as the call itself may unregister it
154-
PyObject *the_func = Py_NewRef(cb->func);
155-
PyObject *the_args = cb->args;
156-
PyObject *the_kwargs = cb->kwargs;
154+
PyObject *func = Py_NewRef(cb->func);
155+
PyObject *args = cb->args;
156+
PyObject *kwargs = cb->kwargs;
157157
// Unlock for re-entrancy problems
158158
_PyAtExit_UNLOCK(state);
159-
PyObject *res = PyObject_Call(the_func, the_args, the_kwargs);
159+
PyObject *res = PyObject_Call(func, args, kwargs);
160160
if (res == NULL) {
161161
PyErr_FormatUnraisable(
162162
"Exception ignored in atexit callback %R", the_func);
163163
}
164164
else {
165165
Py_DECREF(res);
166166
}
167-
Py_DECREF(the_func);
167+
Py_DECREF(func);
168168
_PyAtExit_LOCK(state);
169169
}
170170

0 commit comments

Comments
 (0)