mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
make naming convention consistent
This commit is contained in:
parent
fd37dd46e8
commit
06638735fc
1 changed files with 2 additions and 2 deletions
|
@ -623,7 +623,7 @@ PyImport_AddModule(const char *name)
|
||||||
|
|
||||||
/* Remove name from sys.modules, if it's there. */
|
/* Remove name from sys.modules, if it's there. */
|
||||||
static void
|
static void
|
||||||
_RemoveModule(const char *name)
|
remove_module(const char *name)
|
||||||
{
|
{
|
||||||
PyObject *modules = PyImport_GetModuleDict();
|
PyObject *modules = PyImport_GetModuleDict();
|
||||||
if (PyDict_GetItemString(modules, name) == NULL)
|
if (PyDict_GetItemString(modules, name) == NULL)
|
||||||
|
@ -695,7 +695,7 @@ PyImport_ExecCodeModuleEx(char *name, PyObject *co, char *pathname)
|
||||||
return m;
|
return m;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
_RemoveModule(name);
|
remove_module(name);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue