mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
@ -312,7 +312,7 @@ initimport(PyInterpreterState *interp, PyObject *sysmod)
|
|||
Py_INCREF(interp->import_func);
|
||||
|
||||
/* Import the _imp module */
|
||||
impmod = PyInit_imp();
|
||||
impmod = PyInit__imp();
|
||||
if (impmod == NULL) {
|
||||
return _Py_INIT_ERR("can't import _imp");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue