From: Guido van Rossum Date: Tue, 4 Nov 1997 17:04:34 +0000 (+0000) Subject: Get rid of another reference to _PyImport_Inittab (now a static array) X-Git-Tag: v1.5b1~131 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=25c649fdf2e9326fd897ac9707d5041e151a8161;p=python 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). --- diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 59b7aab13b..665d17c3eb 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -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);