Skip to content

Commit 38e8a08

Browse files
committed
we need to make this import lazy, else we get circular imports
1 parent 433ae06 commit 38e8a08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/_pyrepl/fancycompleter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"""
66
Colorful tab completion for Python prompt
77
"""
8-
from _pyrepl import readline
98
from _colorize import ANSIColors, get_colors
109
import rlcompleter
1110
import types
@@ -53,6 +52,7 @@ class Completer(rlcompleter.Completer):
5352
depending on the type.
5453
"""
5554
def __init__(self, namespace=None, Config=DefaultConfig):
55+
from _pyrepl import readline
5656
rlcompleter.Completer.__init__(self, namespace)
5757
self.config = Config()
5858
self.config.setup()

0 commit comments

Comments
 (0)