X Tutup
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update Python/pythonrun.c
  • Loading branch information
skirpichev authored Aug 31, 2024
commit 90a1b8796a5ab76e6c0115b3a077eb2b6338ec77
4 changes: 1 addition & 3 deletions Python/pythonrun.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,7 @@ PyRun_InteractiveOneObjectEx(FILE *fp, PyObject *filename,
goto error;
}
PyObject *line = PyList_GET_ITEM(xs, n - 1);
if (PyObject_SetAttr(exc, &_Py_ID(text), line) == -1) {
_PyErr_Clear(tstate);
}
PyObject_SetAttr(exc, &_Py_ID(text), line);
Py_DECREF(xs);
}
error:
Expand Down
X Tutup