summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Python/sysmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index d15fab1..830fb5d 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -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);