mirror of https://github.com/python/cpython.git
bpo-44256: Do not expose _functools._list_elem_type (GH-26416)
It is internal use only type.
(cherry picked from commit 28be3191a9
)
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
This commit is contained in:
parent
448abe8d8b
commit
35be1f3602
|
@ -1460,9 +1460,8 @@ _functools_exec(PyObject *module)
|
|||
if (state->lru_list_elem_type == NULL) {
|
||||
return -1;
|
||||
}
|
||||
if (PyModule_AddType(module, state->lru_list_elem_type) < 0) {
|
||||
return -1;
|
||||
}
|
||||
// lru_list_elem is used only in _lru_cache_wrapper.
|
||||
// So we don't expose it in module namespace.
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue