Skip to content

Commit def2e54

Browse files
committed
fixup! PEP 810: Updates based on feedback
1 parent f98c4ef commit def2e54

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

peps/pep-0810.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ The global lazy imports flag can be controlled through:
646646

647647
* The ``-X lazy_imports=<mode>`` command-line option
648648
* The ``PYTHON_LAZY_IMPORTS=<mode>`` environment variable
649-
* The ``sys.set_lazy_imports(mode)`` function (primarily for testing)
649+
* The ``importlib.set_lazy_imports(mode)`` function (primarily for testing)
650650

651651
Where ``<mode>`` can be:
652652

@@ -667,10 +667,10 @@ lazy* import is ever imported lazily, the import filter is never called, and
667667
the behavior is equivalent to a regular ``import`` statement: the import is
668668
*eager* (as if the lazy keyword was not used).
669669

670-
Python code can run the :func:`!sys.set_lazy_imports` function to override
670+
Python code can run the :func:`!importlib.set_lazy_imports` function to override
671671
the state of the global lazy imports flag inherited from the environment or CLI.
672672
This is especially useful if an application needs to ensure that all imports
673-
are evaluated eagerly, via ``sys.set_lazy_imports('none')``.
673+
are evaluated eagerly, via ``importlib.set_lazy_imports('none')``.
674674
Alternatively, :func:`!importlib.set_lazy_imports` can be used with boolean
675675
values for programmatic control.
676676

0 commit comments

Comments
 (0)