mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
document return value for PyImport_GetLazyImportsFilter
This commit is contained in:
parent
b5121b0e59
commit
093f08b8ab
3 changed files with 6 additions and 2 deletions
|
|
@ -2815,6 +2815,7 @@ sys_get_lazy_imports_filter_impl(PyObject *module)
|
|||
{
|
||||
PyObject *filter = PyImport_GetLazyImportsFilter();
|
||||
if (filter == NULL) {
|
||||
assert(!PyErr_Occurred());
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
return filter;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue