mirror of https://github.com/python/cpython
Make builtin_module_names a tuple instead of a list.
This commit is contained in:
parent
541cdd84ac
commit
8f49e12a0e
|
@ -232,6 +232,11 @@ list_builtin_module_names()
|
|||
DECREF(list);
|
||||
list = NULL;
|
||||
}
|
||||
if (list) {
|
||||
object *v = listtuple(list);
|
||||
DECREF(list);
|
||||
list = v;
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue