diff options
author | David Ostrovsky <david@ostrovsky.org> | 2020-12-21 07:56:11 +0100 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2021-01-05 12:18:11 +0100 |
commit | c099288c232c864583b9a263069390a75bf43524 (patch) | |
tree | 9dc53bcf9620aab6dd6bdca702a4c0903dc11988 /pyuno | |
parent | 09cff148ed51e5d462b9d04634e9441caadde3ef (diff) |
tdf#138987 pyuno: PyEval_InitThreads is a no-op in Python 3.9
Change-Id: I220eecfa6aaf4d5cb12e3b4eacadf25843b41452
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108403
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/source/loader/pyuno_loader.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pyuno/source/loader/pyuno_loader.cxx b/pyuno/source/loader/pyuno_loader.cxx index 3a7bfd5cf45f..0db6e637a2a7 100644 --- a/pyuno/source/loader/pyuno_loader.cxx +++ b/pyuno/source/loader/pyuno_loader.cxx @@ -223,7 +223,9 @@ void pythonInit() { // initialize python Py_Initialize(); +#if PY_VERSION_HEX < 0x03090000 PyEval_InitThreads(); +#endif PyThreadState *tstate = PyThreadState_Get(); PyEval_ReleaseThread( tstate ); |