gh-133644: remove deprecated PyImport_ImportModuleNoBlock (#133655)

This commit is contained in:
Bénédikt Tran 2025-05-08 15:08:43 +02:00 committed by GitHub
parent 26839eae20
commit a2c4467d06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 20 additions and 34 deletions

View file

@ -3434,8 +3434,10 @@ PyImport_ImportModule(const char *name)
* ImportError instead of blocking.
*
* Returns the module object with incremented ref count.
*
* Removed in 3.15, but kept for stable ABI compatibility.
*/
PyObject *
PyAPI_FUNC(PyObject *)
PyImport_ImportModuleNoBlock(const char *name)
{
if (PyErr_WarnEx(PyExc_DeprecationWarning,