Skip to content

Commit a015a7c

Browse files
made auto completion work
1 parent 919cdfd commit a015a7c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

bpython/importcompletion.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,14 +201,13 @@ def find_all_modules(path=None):
201201
if done:
202202
print("path2:", path)
203203
for p in path:
204-
if done:
205-
print("p:", p)
206204
if not p:
207205
p = os.curdir
208206
for module in find_modules(p):
207+
module = try_decode(module, "ascii")
208+
if module is None or "numpy" in module:
209+
continue
209210
modules.add(module)
210-
if done:
211-
print("Yes:", module)
212211
yield
213212

214213

0 commit comments

Comments
 (0)