Skip to content

Commit

Permalink
bpo-44256: Do not expose _functools._list_elem_type (GH-26416)
Browse files Browse the repository at this point in the history
It is internal use only type.
  • Loading branch information
methane committed May 28, 2021
1 parent 28f12c9 commit 28be319
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Modules/_functoolsmodule.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 28be319

Please sign in to comment.