[Libreoffice-commits] core.git: pyuno/source
David Ostrovsky (via logerrit)
logerrit at kemper.freedesktop.org
Sat Dec 19 16:35:25 UTC 2020
pyuno/source/module/pyuno_module.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 6dd1d2268487920e8bda44dfd169a5bda4d62f13
Author: David Ostrovsky <david at ostrovsky.org>
AuthorDate: Fri Dec 18 11:25:05 2020 +0100
Commit: Michael Stahl <michael.stahl at cib.de>
CommitDate: Sat Dec 19 17:34:50 2020 +0100
tdf#138987 pyuno: PyEval_InitThreads is a no-op in Python 3.9
Change-Id: I7cf95ab1f237e315e8bd80b47758839bca34f970
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107946
Reviewed-by: Michael Stahl <michael.stahl at cib.de>
Tested-by: Jenkins
diff --git a/pyuno/source/module/pyuno_module.cxx b/pyuno/source/module/pyuno_module.cxx
index 4a9d1921386f..35986b3646ba 100644
--- a/pyuno/source/module/pyuno_module.cxx
+++ b/pyuno/source/module/pyuno_module.cxx
@@ -883,7 +883,9 @@ PyObject* PyInit_pyuno()
PyUNO_initType();
PyUNOStruct_initType();
// noop when called already, otherwise needed to allow multiple threads
+#if PY_VERSION_HEX < 0x03090000
PyEval_InitThreads();
+#endif
static struct PyModuleDef moduledef =
{
PyModuleDef_HEAD_INIT,
More information about the Libreoffice-commits
mailing list