]> granicus.if.org Git - python/commitdiff
Get rid of another reference to _PyImport_Inittab (now a static array)
authorGuido van Rossum <guido@python.org>
Tue, 4 Nov 1997 17:04:34 +0000 (17:04 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 4 Nov 1997 17:04:34 +0000 (17:04 +0000)
that should be PyImport_Inittab (a new pointer initialized to point to
the array).

Python/sysmodule.c

index 59b7aab13b62f42b7114b8bd9f3014fcb7dbed92..665d17c3eb49e90b9d597772bd6385169460b840 100644 (file)
@@ -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);