mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
bpo-44256: Do not expose _functools._list_elem_type (GH-26416)
It is internal use only type.
This commit is contained in:
parent
28f12c9f4f
commit
28be3191a9
1 changed files with 2 additions and 3 deletions
|
@ -1460,9 +1460,8 @@ _functools_exec(PyObject *module)
|
||||||
if (state->lru_list_elem_type == NULL) {
|
if (state->lru_list_elem_type == NULL) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (PyModule_AddType(module, state->lru_list_elem_type) < 0) {
|
// lru_list_elem is used only in _lru_cache_wrapper.
|
||||||
return -1;
|
// So we don't expose it in module namespace.
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue