Skip to content

Commit cea4db1

Browse files
committed
Use find_coroutine instead of find_all_modules
1 parent 79e6013 commit cea4db1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bpython/curtsies.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from . import args as bpargs
1414
from . import translations
1515
from .translations import _
16-
from .importcompletion import find_all_modules
16+
from .importcompletion import find_coroutine
1717
from .curtsiesfrontend import events as bpythonevents
1818
from . import inspection
1919
from .repl import extract_exit_value
@@ -113,7 +113,7 @@ def mainloop(self, interactive=True, paste=None):
113113
# do a display before waiting for first event
114114
self.process_event_and_paint(None)
115115
inputs = combined_events(self.input_generator)
116-
for unused in find_all_modules():
116+
while find_coroutine():
117117
e = inputs.send(0)
118118
if e is not None:
119119
self.process_event_and_paint(e)

0 commit comments

Comments
 (0)