diff options
author | David Ostrovsky <david@ostrovsky.org> | 2020-12-21 07:56:11 +0100 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2021-01-05 22:12:21 +0100 |
commit | c82bb0297ea0dbba77823230ed36b81a39e8cbab (patch) | |
tree | d7b85b9b94364f0b3636372dc96ce7cdb0b71f0d /pyuno | |
parent | edeebddfacdb6e77a4f21a96bc7a6e96851434a5 (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>
(cherry picked from commit 8be493744cafc2572c701e681ab147fa28c6bc39)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108719
Reviewed-by: David Ostrovsky <david@ostrovsky.org>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
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 07dc748235f9..dc428fb1f3a2 100644 --- a/pyuno/source/loader/pyuno_loader.cxx +++ b/pyuno/source/loader/pyuno_loader.cxx @@ -229,7 +229,9 @@ PythonInit() { // initialize python Py_Initialize(); +#if PY_VERSION_HEX < 0x03090000 PyEval_InitThreads(); +#endif PyThreadState *tstate = PyThreadState_Get(); PyEval_ReleaseThread( tstate ); |