diff options
author | Victor Stinner <vstinner@python.org> | 2023-06-09 08:30:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-09 08:30:57 (GMT) |
commit | 3e525d22128cf040b3fd164f52cc6ae20ca58455 (patch) | |
tree | 2f13c7b5eaf259a395c3600e2b8a920972c9c2d8 /Include | |
parent | a5f23d411062f9f29f8a7d7ddefe60d5d8e17d2e (diff) | |
download | cpython-3e525d22128cf040b3fd164f52cc6ae20ca58455.zip cpython-3e525d22128cf040b3fd164f52cc6ae20ca58455.tar.gz cpython-3e525d22128cf040b3fd164f52cc6ae20ca58455.tar.bz2 |
gh-105396: Deprecate PyImport_ImportModuleNoBlock() function (#105397)
Deprecate the PyImport_ImportModuleNoBlock() function which is just
an alias to PyImport_ImportModule() since Python 3.3.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/import.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/import.h b/Include/import.h index 5d5f342..6c63744 100644 --- a/Include/import.h +++ b/Include/import.h @@ -46,7 +46,7 @@ PyAPI_FUNC(PyObject *) PyImport_AddModule( PyAPI_FUNC(PyObject *) PyImport_ImportModule( const char *name /* UTF-8 encoded string */ ); -PyAPI_FUNC(PyObject *) PyImport_ImportModuleNoBlock( +Py_DEPRECATED(3.13) PyAPI_FUNC(PyObject *) PyImport_ImportModuleNoBlock( const char *name /* UTF-8 encoded string */ ); PyAPI_FUNC(PyObject *) PyImport_ImportModuleLevel( |