summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2020-11-10 16:13:51 +0100
committerBenoit Foucher <benoit@zeroc.com>2020-11-10 16:13:51 +0100
commitd64e8788de81193e2d00aaefaac8cf90ddc4baec (patch)
tree9899aa528f03408800f720d4781914fe63bc20bf /python
parentFix Xcode 12 build failures (#1120) (diff)
downloadice-d64e8788de81193e2d00aaefaac8cf90ddc4baec.tar.bz2
ice-d64e8788de81193e2d00aaefaac8cf90ddc4baec.tar.xz
ice-d64e8788de81193e2d00aaefaac8cf90ddc4baec.zip
Fixed iOS test controller Xcode project for Xcode 12 and Python 3.9 fix
Diffstat (limited to 'python')
-rw-r--r--python/modules/IcePy/Init.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/modules/IcePy/Init.cpp b/python/modules/IcePy/Init.cpp
index ffc2472c82d..8a20f779b4b 100644
--- a/python/modules/IcePy/Init.cpp
+++ b/python/modules/IcePy/Init.cpp
@@ -141,10 +141,13 @@ initIcePy(void)
Ice::registerIceDiscovery(false);
Ice::registerIceLocatorDiscovery(false);
+#if PY_VERSION_HEX >= 0x03090000
//
- // Notify Python that we are a multi-threaded extension.
+ // Notify Python that we are a multi-threaded extension. This method is deprecated
+ // and does nothing since Python 3.9
//
PyEval_InitThreads();
+#endif
#if PY_VERSION_HEX >= 0x03000000
//