Skip to content

Commit a79e157

Browse files
committed
gh-156363: Use PEP 810 lazy imports for inspect and re in rlcompleter
Address review feedback
1 parent 0ba9e10 commit a79e157

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

Lib/rlcompleter.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
import __main__
3636
import warnings
3737
import types
38-
3938
lazy import inspect
4039
lazy import re
4140

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
Speed up ``import rlcompleter`` by deferring the imports of :mod:`inspect`
2-
and :mod:`re` into the completion methods that use them. They are only
3-
needed while computing completions, so importing :mod:`rlcompleter` (for
4-
example when setting up interactive completion) no longer pays their import
5-
cost.
1+
Speed up the :mod:`rlcompleter` module's import time.

0 commit comments

Comments
 (0)