diff options
author | Guido van Rossum <guido@python.org> | 1997-01-06 22:55:54 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-01-06 22:55:54 +0000 |
commit | aac36f2eb860b14c8e54a73113bdefadf5adc3f4 (patch) | |
tree | c56d7fbc5da17e3bcaab42c19ad803a72d211f07 /Python/sysmodule.c | |
parent | 18768fae56254b1edc32366f6f2ffd647bce8c03 (diff) | |
download | cpython-aac36f2eb860b14c8e54a73113bdefadf5adc3f4.tar.gz |
Make builtin_module_names a tuple instead of a list.
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 5 |
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; } |