summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2021-09-28 21:12:50 (GMT)
committerPablo Galindo <pablogsal@gmail.com>2021-09-29 11:27:08 (GMT)
commit2ca4ab8031107f9e474e2ce26561ab9ad51faf9c (patch)
treeb653a0877f887a8d40bbf52bebc30d59589226b3 /Include
parent3397e3192ccc95ff7076f735930d2f4c60fbc278 (diff)
downloadcpython-2ca4ab8031107f9e474e2ce26561ab9ad51faf9c.zip
cpython-2ca4ab8031107f9e474e2ce26561ab9ad51faf9c.tar.gz
cpython-2ca4ab8031107f9e474e2ce26561ab9ad51faf9c.tar.bz2
[3.10] bpo-45307: Restore private C API function _PyImport_FindExtensionObject() (GH-28594)
py2exe and PyOxidizer rely on this API. It will be removed in Python 3.11. Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Diffstat (limited to 'Include')
-rw-r--r--Include/cpython/import.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/cpython/import.h b/Include/cpython/import.h
index bad68f0..dd5bbdb 100644
--- a/Include/cpython/import.h
+++ b/Include/cpython/import.h
@@ -13,6 +13,9 @@ PyAPI_FUNC(int) _PyImport_SetModuleString(const char *name, PyObject* module);
PyAPI_FUNC(void) _PyImport_AcquireLock(void);
PyAPI_FUNC(int) _PyImport_ReleaseLock(void);
+/* Obsolete since 3.5, will be removed in 3.11. */
+Py_DEPRECATED(3.10) PyAPI_FUNC(PyObject *) _PyImport_FindExtensionObject(PyObject *, PyObject *);
+
PyAPI_FUNC(int) _PyImport_FixupBuiltin(
PyObject *mod,
const char *name, /* UTF-8 encoded string */