diff options
author | Fred Drake <fdrake@acm.org> | 2001-02-28 20:58:04 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-02-28 20:58:04 (GMT) |
commit | b797f1f6d25c02d15f20f04681f39f2e75efb9b3 (patch) | |
tree | 6919a5d79eb45fd827ee465e96f4125c8d04d283 /Python/pythonrun.c | |
parent | aece4270b1de4777eef3f2aadd7aaf3ac9b69cee (diff) | |
download | cpython-b797f1f6d25c02d15f20f04681f39f2e75efb9b3.zip cpython-b797f1f6d25c02d15f20f04681f39f2e75efb9b3.tar.gz cpython-b797f1f6d25c02d15f20f04681f39f2e75efb9b3.tar.bz2 |
Now that Jeremy is asking about this code, it looks really bogus to me,
so let's rip it out. The constructor for SyntaxError does the right
thing, so we do not need to do it again.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 40611b6..7d73395 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -1096,24 +1096,6 @@ err_input(perrdetail *err) w = Py_BuildValue("(sO)", msg, v); PyErr_SetObject(errtype, w); Py_XDECREF(w); - - if (v != NULL) { - PyObject *exc, *tb; - - PyErr_Fetch(&errtype, &exc, &tb); - PyErr_NormalizeException(&errtype, &exc, &tb); - if (PyObject_SetAttrString(exc, "filename", - PyTuple_GET_ITEM(v, 0))) - PyErr_Clear(); - if (PyObject_SetAttrString(exc, "lineno", - PyTuple_GET_ITEM(v, 1))) - PyErr_Clear(); - if (PyObject_SetAttrString(exc, "offset", - PyTuple_GET_ITEM(v, 2))) - PyErr_Clear(); - Py_DECREF(v); - PyErr_Restore(errtype, exc, tb); - } } /* Print fatal error message and abort */ |