Skip to content

Commit 474e627

Browse files
committed
make import completion list building coroutine use smaller chunks
1 parent 1298255 commit 474e627

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bpython/importcompletion.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,9 @@ def find_all_modules(path=None):
9393
path = sys.path
9494

9595
for p in path:
96-
modules.update(find_modules(p))
97-
yield
96+
for module in find_modules(p):
97+
modules.add(module)
98+
yield
9899

99100
def find_coroutine():
100101
global fully_loaded

0 commit comments

Comments
 (0)