mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
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).
This commit is contained in:
parent
22348dc0e1
commit
25c649fdf2
1 changed files with 2 additions and 2 deletions
|
@ -251,9 +251,9 @@ list_builtin_module_names()
|
||||||
int i;
|
int i;
|
||||||
if (list == NULL)
|
if (list == NULL)
|
||||||
return 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(
|
PyObject *name = PyString_FromString(
|
||||||
_PyImport_Inittab[i].name);
|
PyImport_Inittab[i].name);
|
||||||
if (name == NULL)
|
if (name == NULL)
|
||||||
break;
|
break;
|
||||||
PyList_Append(list, name);
|
PyList_Append(list, name);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue