diff Python/sysmodule.c @ 4904:5dc20a9e0506 legacy-trunk

Make builtin_module_names a tuple instead of a list.
author Guido van Rossum <guido@python.org>
date Mon, 06 Jan 1997 22:55:54 +0000
parents 65d2d8e67da3
children 7a9cac7cb910
line wrap: on
line diff
--- a/Python/sysmodule.c	Mon Jan 06 22:53:20 1997 +0000
+++ b/Python/sysmodule.c	Mon Jan 06 22:55:54 1997 +0000
@@ -232,6 +232,11 @@
 		DECREF(list);
 		list = NULL;
 	}
+	if (list) {
+		object *v = listtuple(list);
+		DECREF(list);
+		list = v;
+	}
 	return list;
 }