mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -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:
@@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user