summaryrefslogtreecommitdiff
path: root/src/if_python3.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-06-12 21:37:13 +0200
committerBram Moolenaar <Bram@vim.org>2011-06-12 21:37:13 +0200
commit456f2bb24f269a1f1ceb5ddedfb828ca33fc270b (patch)
tree719e2e4d94ccdbd2fb439dc68ea03f59c18f6205 /src/if_python3.c
parent03227eeb797dcc7cdd90672b67b8daff61943f21 (diff)
downloadvim-git-456f2bb24f269a1f1ceb5ddedfb828ca33fc270b.tar.gz
updated for version 7.3.212v7.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)
Diffstat (limited to 'src/if_python3.c')
-rw-r--r--src/if_python3.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/if_python3.c b/src/if_python3.c
index 91d3f65c1..1121802b5 100644
--- a/src/if_python3.c
+++ b/src/if_python3.c
@@ -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();