summaryrefslogtreecommitdiffstats
path: root/Include/internal
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-06-19 08:36:10 (GMT)
committerGitHub <noreply@github.com>2019-06-19 08:36:10 (GMT)
commit987a0dcfa1302df6c1ed8cf14762dc18628e3f33 (patch)
treee5067c951f469056947e4b2c3312503610424abc /Include/internal
parent7821b4c6d29933511d50bb42255e39790c6abf00 (diff)
downloadcpython-987a0dcfa1302df6c1ed8cf14762dc18628e3f33.zip
cpython-987a0dcfa1302df6c1ed8cf14762dc18628e3f33.tar.gz
cpython-987a0dcfa1302df6c1ed8cf14762dc18628e3f33.tar.bz2
bpo-36710: Remove PyImport_Cleanup() function (GH-14221)
* Rename PyImport_Cleanup() to _PyImport_Cleanup() and move it to the internal C API. Add 'tstate' parameters. * Remove documentation of _PyImport_Init(), PyImport_Cleanup(), _PyImport_Fini(). All three were documented as "For internal use only.".
Diffstat (limited to 'Include/internal')
-rw-r--r--Include/internal/pycore_import.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/internal/pycore_import.h b/Include/internal/pycore_import.h
index bbcd170..5d3203e 100644
--- a/Include/internal/pycore_import.h
+++ b/Include/internal/pycore_import.h
@@ -11,6 +11,7 @@ PyAPI_FUNC(PyObject *) _PyImport_FindBuiltin(
);
extern void _PyImport_ReInitLock(void);
+extern void _PyImport_Cleanup(PyThreadState *tstate);
#ifdef __cplusplus
}