0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

updated for version 7.3.212

Problem:    With Python 3.2 ":py3" fails.
Solution:   Move PyEval_InitThreads() to after Py_Initialize(). (Roland
            Puntaier)  Check abiflags in configure. (Andreas Behr)
This commit is contained in:
Bram Moolenaar
2011-06-12 21:37:13 +02:00
parent 03227eeb79
commit 456f2bb24f
4 changed files with 48 additions and 11 deletions

View File

@@ -547,14 +547,13 @@ Python3_Init(void)
Py_SetPythonHome(PYTHON3_HOME);
#endif
/* initialise threads */
PyEval_InitThreads();
#if !defined(MACOS) || defined(MACOS_X_UNIX)
Py_Initialize();
#else
PyMac_Initialize();
#endif
/* initialise threads, must be after Py_Initialize() */
PyEval_InitThreads();
#ifdef DYNAMIC_PYTHON3
get_py3_exceptions();