Commit 5add0a34 authored by Guido van Rossum's avatar Guido van Rossum

Get rid of another reference to _PyImport_Inittab (now a static array)

that should be PyImport_Inittab (a new pointer initialized to point to
the array).
parent 20dfd857
......@@ -251,9 +251,9 @@ list_builtin_module_names()
int i;
if (list == NULL)
return NULL;
for (i = 0; _PyImport_Inittab[i].name != NULL; i++) {
for (i = 0; PyImport_Inittab[i].name != NULL; i++) {
PyObject *name = PyString_FromString(
_PyImport_Inittab[i].name);
PyImport_Inittab[i].name);
if (name == NULL)
break;
PyList_Append(list, name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment