Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 21510:85e694e9b9fc 2.1
backport 2.153:
Missing DECREFs when exception is raised in sys.excepthook.
| author | Anthony Baxter <anthonybaxter@gmail.com> |
|---|---|
| date | Fri, 21 Dec 2001 03:46:12 +0000 |
| parents | 097dd953e119 |
| children |
comparison
equal
deleted
inserted
replaced
| 21509:568c75dd5078 | 21510:85e694e9b9fc |
|---|---|
| 864 fflush(stdout); | 864 fflush(stdout); |
| 865 PySys_WriteStderr("Error in sys.excepthook:\n"); | 865 PySys_WriteStderr("Error in sys.excepthook:\n"); |
| 866 PyErr_Display(exception2, v2, tb2); | 866 PyErr_Display(exception2, v2, tb2); |
| 867 PySys_WriteStderr("\nOriginal exception was:\n"); | 867 PySys_WriteStderr("\nOriginal exception was:\n"); |
| 868 PyErr_Display(exception, v, tb); | 868 PyErr_Display(exception, v, tb); |
| 869 Py_XDECREF(exception2); | |
| 870 Py_XDECREF(v2); | |
| 871 Py_XDECREF(tb2); | |
| 869 } | 872 } |
| 870 Py_XDECREF(result); | 873 Py_XDECREF(result); |
| 871 Py_XDECREF(args); | 874 Py_XDECREF(args); |
| 872 } else { | 875 } else { |
| 873 PySys_WriteStderr("sys.excepthook is missing\n"); | 876 PySys_WriteStderr("sys.excepthook is missing\n"); |
