mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Oops, forgot one: inittab.
This commit is contained in:
parent
87490eb3b0
commit
bb5c6f8529
1 changed files with 2 additions and 2 deletions
|
@ -231,8 +231,8 @@ list_builtin_module_names()
|
|||
int i;
|
||||
if (list == NULL)
|
||||
return NULL;
|
||||
for (i = 0; inittab[i].name != NULL; i++) {
|
||||
PyObject *name = PyString_FromString(inittab[i].name);
|
||||
for (i = 0; _PyImport_Inittab[i].name != NULL; i++) {
|
||||
PyObject *name = PyString_FromString(_PyImport_Inittab[i].name);
|
||||
if (name == NULL)
|
||||
break;
|
||||
PyList_Append(list, name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue