0
0
mirror of https://github.com/vim/vim.git synced 2025-09-01 21:03:39 -04:00

updated for version 7.3.716

Problem:    Error on exit when using Python 3.
Solution:   Remove PythonIO_Fini(). (Roland Puntaier)
This commit is contained in:
Bram Moolenaar 2012-11-20 11:04:35 +01:00
parent 97d62497f5
commit 99a547d3a1
2 changed files with 2 additions and 9 deletions

View File

@ -657,7 +657,6 @@ static Py_ssize_t RangeEnd;
static PyObject *globals;
static int PythonIO_Init(void);
static void PythonIO_Fini(void);
PyMODINIT_FUNC Py3Init_vim(void);
/******************************************************
@ -685,7 +684,6 @@ python3_end()
// acquire lock before finalizing
pygilstate = PyGILState_Ensure();
PythonIO_Fini();
Py_Finalize();
}
@ -989,13 +987,6 @@ PythonIO_Init(void)
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
*/

View File

@ -725,6 +725,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
716,
/**/
715,
/**/