Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aece427 commit b797f1fCopy full SHA for b797f1f
1 file changed
Python/pythonrun.c
@@ -1096,24 +1096,6 @@ err_input(perrdetail *err)
1096
w = Py_BuildValue("(sO)", msg, v);
1097
PyErr_SetObject(errtype, w);
1098
Py_XDECREF(w);
1099
-
1100
- if (v != NULL) {
1101
- PyObject *exc, *tb;
1102
1103
- PyErr_Fetch(&errtype, &exc, &tb);
1104
- PyErr_NormalizeException(&errtype, &exc, &tb);
1105
- if (PyObject_SetAttrString(exc, "filename",
1106
- PyTuple_GET_ITEM(v, 0)))
1107
- PyErr_Clear();
1108
- if (PyObject_SetAttrString(exc, "lineno",
1109
- PyTuple_GET_ITEM(v, 1)))
1110
1111
- if (PyObject_SetAttrString(exc, "offset",
1112
- PyTuple_GET_ITEM(v, 2)))
1113
1114
- Py_DECREF(v);
1115
- PyErr_Restore(errtype, exc, tb);
1116
- }
1117
}
1118
1119
/* Print fatal error message and abort */
0 commit comments