summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-01-06 22:55:54 +0000
committerGuido van Rossum <guido@python.org>1997-01-06 22:55:54 +0000
commitaac36f2eb860b14c8e54a73113bdefadf5adc3f4 (patch)
treec56d7fbc5da17e3bcaab42c19ad803a72d211f07 /Python/sysmodule.c
parent18768fae56254b1edc32366f6f2ffd647bce8c03 (diff)
downloadcpython-aac36f2eb860b14c8e54a73113bdefadf5adc3f4.tar.gz
Make builtin_module_names a tuple instead of a list.
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index d32562e53c..568f45aed6 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -232,6 +232,11 @@ list_builtin_module_names()
DECREF(list);
list = NULL;
}
+ if (list) {
+ object *v = listtuple(list);
+ DECREF(list);
+ list = v;
+ }
return list;
}