summaryrefslogtreecommitdiffstats
path: root/PC/config.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2018-01-29 19:33:57 (GMT)
committerGitHub <noreply@github.com>2018-01-29 19:33:57 (GMT)
commitc65ef772c335324deb03626cc447b89987781f27 (patch)
treefba0ec89a83165958c4e9ce631442bb9ce9ff7fa /PC/config.c
parent2a2270db9be9bdac5ffd2d50929bf905e7391a06 (diff)
downloadcpython-c65ef772c335324deb03626cc447b89987781f27.zip
cpython-c65ef772c335324deb03626cc447b89987781f27.tar.gz
cpython-c65ef772c335324deb03626cc447b89987781f27.tar.bz2
rename _imp initialization function to follow conventions (#5432)
When the C imp module became _imp in 6f44d66bc491bad5b8d897a68da68e009e27829d, the initialization function should have been renamed from PyInit_imp to PyInit__imp.
Diffstat (limited to 'PC/config.c')
-rw-r--r--PC/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/PC/config.c b/PC/config.c
index 91f15b5..6209d7e 100644
--- a/PC/config.c
+++ b/PC/config.c
@@ -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},