| To: vim_dev@googlegroups.com |
| Subject: Patch 7.3.716 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.3.716 |
| Problem: Error on exit when using Python 3. |
| Solution: Remove PythonIO_Fini(). (Roland Puntaier) |
| Files: src/if_python3.c |
| |
| |
| |
| |
| |
| *** 657,663 **** |
| static PyObject *globals; |
| |
| static int PythonIO_Init(void); |
| - static void PythonIO_Fini(void); |
| PyMODINIT_FUNC Py3Init_vim(void); |
| |
| / |
| --- 657,662 ---- |
| |
| *** 685,691 **** |
| // acquire lock before finalizing |
| pygilstate = PyGILState_Ensure(); |
| |
| - PythonIO_Fini(); |
| Py_Finalize(); |
| } |
| |
| --- 684,689 ---- |
| |
| *** 989,1001 **** |
| return PythonIO_Init_io(); |
| } |
| |
| - static void |
| - PythonIO_Fini(void) |
| - { |
| - PySys_SetObject("stdout", NULL); |
| - PySys_SetObject("stderr", NULL); |
| - } |
| - |
| / |
| * 3. Implementation of the Vim module for Python |
| */ |
| --- 987,992 ---- |
| |
| |
| |
| *** 727,728 **** |
| --- 727,730 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 716, |
| /**/ |
| |
| -- |
| Nothing is fool-proof to a sufficiently talented fool. |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ an exciting new programming language -- http://www.Zimbu.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |