Skip to content

Commit f87fc96

Browse files
committed
Use generator instead of a list
1 parent 0cfbd99 commit f87fc96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/autocomplete.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def _method_match_substring(word: str, size: int, text: str) -> bool:
207207

208208

209209
def _method_match_fuzzy(word: str, size: int, text: str) -> bool:
210-
s = r".*%s.*" % ".*".join(list(text))
210+
s = r".*{}.*".format(".*".join(c for c in text))
211211
return re.search(s, word) is not None
212212

213213

0 commit comments

Comments
 (0)