diff options
Diffstat (limited to 'python/modules/IcePy/Init.cpp')
-rw-r--r-- | python/modules/IcePy/Init.cpp | 5 |
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 // |