mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +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);
|
DECREF(list);
|
||||||
list = NULL;
|
list = NULL;
|
||||||
}
|
}
|
||||||
|
if (list) {
|
||||||
|
object *v = listtuple(list);
|
||||||
|
DECREF(list);
|
||||||
|
list = v;
|
||||||
|
}
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue