]> granicus.if.org Git - python/commitdiff
make naming convention consistent
authorBenjamin Peterson <benjamin@python.org>
Thu, 25 Mar 2010 23:27:16 +0000 (23:27 +0000)
committerBenjamin Peterson <benjamin@python.org>
Thu, 25 Mar 2010 23:27:16 +0000 (23:27 +0000)
Python/import.c

index bcdd68e0ef80ccdd208568e4f88c44c0d0a34691..86150e262db864b6e2a6e32554ad25b23b04d003 100644 (file)
@@ -623,7 +623,7 @@ PyImport_AddModule(const char *name)
 
 /* Remove name from sys.modules, if it's there. */
 static void
-_RemoveModule(const char *name)
+remove_module(const char *name)
 {
        PyObject *modules = PyImport_GetModuleDict();
        if (PyDict_GetItemString(modules, name) == NULL)
@@ -695,7 +695,7 @@ PyImport_ExecCodeModuleEx(char *name, PyObject *co, char *pathname)
        return m;
 
   error:
-       _RemoveModule(name);
+       remove_module(name);
        return NULL;
 }