diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2021-09-13 22:18:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-13 22:18:37 (GMT) |
commit | a2d8c4b81b8e68e2ffe10945f7ca69174c14e52a (patch) | |
tree | c46c7aead37c0a393f13ef0fb8bb97ea9a9836c6 /Python/clinic | |
parent | 1fc41ae8709e20d741bd86c2345173688a5e84b0 (diff) | |
download | cpython-a2d8c4b81b8e68e2ffe10945f7ca69174c14e52a.zip cpython-a2d8c4b81b8e68e2ffe10945f7ca69174c14e52a.tar.gz cpython-a2d8c4b81b8e68e2ffe10945f7ca69174c14e52a.tar.bz2 |
bpo-45019: Do some cleanup related to frozen modules. (gh-28319)
There are a few things I missed in gh-27980. This is a follow-up that will make subsequent PRs cleaner. It includes fixes to tests and tools that reference the frozen modules.
https://bugs.python.org/issue45019
Diffstat (limited to 'Python/clinic')
-rw-r--r-- | Python/clinic/import.c.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/Python/clinic/import.c.h b/Python/clinic/import.c.h index 4e013cc..ec4ebca 100644 --- a/Python/clinic/import.c.h +++ b/Python/clinic/import.c.h @@ -297,6 +297,24 @@ exit: return return_value; } +PyDoc_STRVAR(_imp__frozen_module_names__doc__, +"_frozen_module_names($module, /)\n" +"--\n" +"\n" +"Returns the list of available frozen modules."); + +#define _IMP__FROZEN_MODULE_NAMES_METHODDEF \ + {"_frozen_module_names", (PyCFunction)_imp__frozen_module_names, METH_NOARGS, _imp__frozen_module_names__doc__}, + +static PyObject * +_imp__frozen_module_names_impl(PyObject *module); + +static PyObject * +_imp__frozen_module_names(PyObject *module, PyObject *Py_UNUSED(ignored)) +{ + return _imp__frozen_module_names_impl(module); +} + #if defined(HAVE_DYNAMIC_LOADING) PyDoc_STRVAR(_imp_create_dynamic__doc__, @@ -449,4 +467,4 @@ exit: #ifndef _IMP_EXEC_DYNAMIC_METHODDEF #define _IMP_EXEC_DYNAMIC_METHODDEF #endif /* !defined(_IMP_EXEC_DYNAMIC_METHODDEF) */ -/*[clinic end generated code: output=7c31c433af88af6b input=a9049054013a1b77]*/ +/*[clinic end generated code: output=0ab3fa7c5808bba4 input=a9049054013a1b77]*/ |