summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-11-04 17:04:34 (GMT)
committerGuido van Rossum <guido@python.org>1997-11-04 17:04:34 (GMT)
commit25c649fdf2e9326fd897ac9707d5041e151a8161 (patch)
treedcc732c5f05559f2b403c639f4604ad7b0c24442 /Python
parent22348dc0e18d9c60ac340c449f801b5ce29cbba9 (diff)
downloadcpython-25c649fdf2e9326fd897ac9707d5041e151a8161.zip
cpython-25c649fdf2e9326fd897ac9707d5041e151a8161.tar.gz
cpython-25c649fdf2e9326fd897ac9707d5041e151a8161.tar.bz2
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).
Diffstat (limited to 'Python')
-rw-r--r--Python/sysmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 59b7aab..665d17c 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);