summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-01-06 22:55:54 (GMT)
committerGuido van Rossum <guido@python.org>1997-01-06 22:55:54 (GMT)
commit8f49e12a0e0805ec61690263ef1ef15340293980 (patch)
treecd30a08ab3fc536ab45235501cf3e85f47e66022 /Python
parent541cdd84aceaec11895c31a6f5afe8a60806cee3 (diff)
downloadcpython-8f49e12a0e0805ec61690263ef1ef15340293980.zip
cpython-8f49e12a0e0805ec61690263ef1ef15340293980.tar.gz
cpython-8f49e12a0e0805ec61690263ef1ef15340293980.tar.bz2
Make builtin_module_names a tuple instead of a list.
Diffstat (limited to 'Python')
-rw-r--r--Python/sysmodule.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index d32562e..568f45a 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;
}