We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4554a9d commit e2294ecCopy full SHA for e2294ec
Lib/_pyrepl/fancycompleter.py
@@ -6,7 +6,7 @@
6
Colorful tab completion for Python prompt
7
"""
8
from _pyrepl import readline
9
-from _colorize import ANSIColors
+from _colorize import ANSIColors, get_colors
10
import rlcompleter
11
import types
12
@@ -39,9 +39,8 @@ class DefaultConfig:
39
}
40
41
def setup(self):
42
- import _colorize
43
if self.use_colors == 'auto':
44
- colors = _colorize.get_colors()
+ colors = get_colors()
45
self.use_colors = colors.RED != ""
46
47
@@ -139,7 +138,7 @@ def attr_matches(self, text):
139
138
while True:
140
for word in words:
141
if (
142
- word[:n] == attr
+ word[:n] == attr
143
and not (noprefix and word[:n+1] == noprefix)
144
):
145
try:
0 commit comments