diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-07-01 22:03:04 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-07-01 22:03:04 +0200 |
commit | 41009374747d68a12d043bcca0ae649d0c18daf4 (patch) | |
tree | e05985bb9262965f6c4ea9a4ddde724be7b89084 /src/if_python.c | |
parent | c33916a6e06db94ea1a3dfd35eee32ca80787ec5 (diff) | |
download | vim-git-41009374747d68a12d043bcca0ae649d0c18daf4.tar.gz |
updated for version 7.3.1287v7.3.1287
Problem: Python SystemExit exception is not handled properly.
Solution: Catch the exception and give an error. (Yasuhiro Matsumoto, Ken
Takata)
Diffstat (limited to 'src/if_python.c')
-rw-r--r-- | src/if_python.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/if_python.c b/src/if_python.c index 5245485e3..6e43b5dc3 100644 --- a/src/if_python.c +++ b/src/if_python.c @@ -444,6 +444,7 @@ static PyObject *imp_PyExc_KeyError; static PyObject *imp_PyExc_KeyboardInterrupt; static PyObject *imp_PyExc_TypeError; static PyObject *imp_PyExc_ValueError; +static PyObject *imp_PyExc_SystemExit; static PyObject *imp_PyExc_RuntimeError; static PyObject *imp_PyExc_ImportError; static PyObject *imp_PyExc_OverflowError; @@ -454,6 +455,7 @@ static PyObject *imp_PyExc_OverflowError; # define PyExc_KeyboardInterrupt imp_PyExc_KeyboardInterrupt # define PyExc_TypeError imp_PyExc_TypeError # define PyExc_ValueError imp_PyExc_ValueError +# define PyExc_SystemExit imp_PyExc_SystemExit # define PyExc_RuntimeError imp_PyExc_RuntimeError # define PyExc_ImportError imp_PyExc_ImportError # define PyExc_OverflowError imp_PyExc_OverflowError @@ -731,6 +733,7 @@ get_exceptions(void) imp_PyExc_KeyboardInterrupt = PyDict_GetItemString(exdict, "KeyboardInterrupt"); imp_PyExc_TypeError = PyDict_GetItemString(exdict, "TypeError"); imp_PyExc_ValueError = PyDict_GetItemString(exdict, "ValueError"); + imp_PyExc_SystemExit = PyDict_GetItemString(exdict, "SystemExit"); imp_PyExc_RuntimeError = PyDict_GetItemString(exdict, "RuntimeError"); imp_PyExc_ImportError = PyDict_GetItemString(exdict, "ImportError"); imp_PyExc_OverflowError = PyDict_GetItemString(exdict, "OverflowError"); @@ -740,6 +743,7 @@ get_exceptions(void) Py_XINCREF(imp_PyExc_KeyboardInterrupt); Py_XINCREF(imp_PyExc_TypeError); Py_XINCREF(imp_PyExc_ValueError); + Py_XINCREF(imp_PyExc_SystemExit); Py_XINCREF(imp_PyExc_RuntimeError); Py_XINCREF(imp_PyExc_ImportError); Py_XINCREF(imp_PyExc_OverflowError); |