Skip to content

Commit e2294ec

Browse files
committed
remove unneeded lazy import
1 parent 4554a9d commit e2294ec

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Lib/_pyrepl/fancycompleter.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Colorful tab completion for Python prompt
77
"""
88
from _pyrepl import readline
9-
from _colorize import ANSIColors
9+
from _colorize import ANSIColors, get_colors
1010
import rlcompleter
1111
import types
1212

@@ -39,9 +39,8 @@ class DefaultConfig:
3939
}
4040

4141
def setup(self):
42-
import _colorize
4342
if self.use_colors == 'auto':
44-
colors = _colorize.get_colors()
43+
colors = get_colors()
4544
self.use_colors = colors.RED != ""
4645

4746

@@ -139,7 +138,7 @@ def attr_matches(self, text):
139138
while True:
140139
for word in words:
141140
if (
142-
word[:n] == attr
141+
word[:n] == attr
143142
and not (noprefix and word[:n+1] == noprefix)
144143
):
145144
try:

0 commit comments

Comments
 (0)