mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
rename _imp initialization function to follow conventions (#5432)
When the C imp module became _imp in 6f44d66bc4, the initialization function should have been renamed from PyInit_imp to PyInit__imp.
This commit is contained in:
parent
2a2270db9b
commit
c65ef772c3
5 changed files with 7 additions and 8 deletions
|
|
@ -74,7 +74,7 @@ extern PyObject* PyInit__opcode(void);
|
|||
/* -- ADDMODULE MARKER 1 -- */
|
||||
|
||||
extern PyObject* PyMarshal_Init(void);
|
||||
extern PyObject* PyInit_imp(void);
|
||||
extern PyObject* PyInit__imp(void);
|
||||
|
||||
struct _inittab _PyImport_Inittab[] = {
|
||||
|
||||
|
|
@ -147,7 +147,7 @@ struct _inittab _PyImport_Inittab[] = {
|
|||
{"marshal", PyMarshal_Init},
|
||||
|
||||
/* This lives it with import.c */
|
||||
{"_imp", PyInit_imp},
|
||||
{"_imp", PyInit__imp},
|
||||
|
||||
/* These entries are here for sys.builtin_module_names */
|
||||
{"builtins", NULL},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue