Skip to content

Commit a837cb2

Browse files
committed
Avoid a list comprehension
1 parent 40460d1 commit a837cb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bpython/autocomplete.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,8 +544,8 @@ def matches(self, cursor_offset, line, **kwargs):
544544
except EvaluationError:
545545
return set()
546546

547-
# strips leading dot
548-
matches = [m[1:] for m in self.attr_lookup(obj, "", attr.word)]
547+
# strips leading dot
548+
matches = (m[1:] for m in self.attr_lookup(obj, "", attr.word))
549549
return {m for m in matches if few_enough_underscores(attr.word, m)}
550550

551551

0 commit comments

Comments
 (0)