mirror of
https://github.com/python/cpython.git
synced 2025-07-16 15:55:18 +00:00
merge
This commit is contained in:
commit
3fa28fd075
1 changed files with 3 additions and 1 deletions
|
@ -3146,8 +3146,10 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
|
|||
if (enter == NULL)
|
||||
goto error;
|
||||
exit = special_lookup(mgr, &PyId___exit__);
|
||||
if (exit == NULL)
|
||||
if (exit == NULL) {
|
||||
Py_DECREF(enter);
|
||||
goto error;
|
||||
}
|
||||
SET_TOP(exit);
|
||||
Py_DECREF(mgr);
|
||||
res = PyObject_CallFunctionObjArgs(enter, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue