Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b96ada1

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

1 file changed

+3-2Lines changed: 3 additions & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎bpython/curtsiesfrontend/repl.py‎

Copy file name to clipboardExpand all lines: bpython/curtsiesfrontend/repl.py
+3-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.