Skip to content

Commit b96ada1

Browse files
committed
Remove another list comprehension
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent 2f090fc commit b96ada1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bpython/curtsiesfrontend/repl.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ def unhighlight_paren(self):
907907
def clear_current_block(self, remove_from_history=True):
908908
self.display_buffer = []
909909
if remove_from_history:
910-
for _ in self.buffer:
910+
for unused in self.buffer:
911911
self.history.pop()
912912
self.buffer = []
913913
self.cursor_offset = 0
@@ -1489,7 +1489,8 @@ def request_refresh():
14891489
r.width = 50
14901490
r.height = 10
14911491
while True:
1492-
[_ for _ in importcompletion.find_iterator]
1492+
while not importcompletion.find_coroutine():
1493+
pass
14931494
r.dumb_print_output()
14941495
r.dumb_input(refreshes)
14951496

0 commit comments

Comments
 (0)