mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Renamed a local label that was accidentally grandly renamed to
'Py_Cleanup' back to 'cleanup'.
This commit is contained in:
parent
fbbd57e4ca
commit
f9c90c533e
1 changed files with 3 additions and 3 deletions
|
@ -2139,10 +2139,10 @@ call_trace(p_trace, p_newtrace, f, msg, arg)
|
||||||
|
|
||||||
args = PyTuple_New(3);
|
args = PyTuple_New(3);
|
||||||
if (args == NULL)
|
if (args == NULL)
|
||||||
goto Py_Cleanup;
|
goto cleanup;
|
||||||
what = PyString_FromString(msg);
|
what = PyString_FromString(msg);
|
||||||
if (what == NULL)
|
if (what == NULL)
|
||||||
goto Py_Cleanup;
|
goto cleanup;
|
||||||
Py_INCREF(f);
|
Py_INCREF(f);
|
||||||
PyTuple_SET_ITEM(args, 0, (PyObject *)f);
|
PyTuple_SET_ITEM(args, 0, (PyObject *)f);
|
||||||
PyTuple_SET_ITEM(args, 1, what);
|
PyTuple_SET_ITEM(args, 1, what);
|
||||||
|
@ -2155,7 +2155,7 @@ call_trace(p_trace, p_newtrace, f, msg, arg)
|
||||||
res = PyEval_CallObject(*p_trace, args); /* May clear *p_trace! */
|
res = PyEval_CallObject(*p_trace, args); /* May clear *p_trace! */
|
||||||
PyFrame_LocalsToFast(f, 1);
|
PyFrame_LocalsToFast(f, 1);
|
||||||
tstate->tracing--;
|
tstate->tracing--;
|
||||||
Py_Cleanup:
|
cleanup:
|
||||||
Py_XDECREF(args);
|
Py_XDECREF(args);
|
||||||
if (res == NULL) {
|
if (res == NULL) {
|
||||||
/* The trace proc raised an exception */
|
/* The trace proc raised an exception */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue