mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Make builtin_module_names a tuple instead of a list.
This commit is contained in:
parent
541cdd84ac
commit
8f49e12a0e
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue