Hello,

the above error is issued when closing gvim with python3 configured (for vim it's displayed too short to be seen). With this patch it's gone:

diff -r 57e8b75298d6 src/if_python3.c
--- a/src/if_python3.c    Tue Oct 23 05:35:34 2012 +0200
+++ b/src/if_python3.c    Sun Nov 18 10:11:49 2012 +0100
@@ -657,7 +657,6 @@
 static PyObject *globals;

 static int PythonIO_Init(void);
-static void PythonIO_Fini(void);
 PyMODINIT_FUNC Py3Init_vim(void);

 /******************************************************
@@ -685,7 +684,6 @@
     // acquire lock before finalizing
     pygilstate = PyGILState_Ensure();

-    PythonIO_Fini();
     Py_Finalize();
     }

@@ -989,13 +987,6 @@
     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
  */

Regards,
Roland

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui