Skip to content

Commit 4e382a8

Browse files
committed
Fix check when matching modules
Regression introduced in a194976.
1 parent d20869f commit 4e382a8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

bpython/importcompletion.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,8 @@ def attr_matches(cw, prefix="", only_modules=False):
8383
matches = (
8484
name
8585
for name in dir(module)
86-
if (
87-
name.startswith(name_after_dot)
88-
and "%s.%s" % (module_name, name)
89-
)
90-
in sys.modules
86+
if name.startswith(name_after_dot)
87+
and "%s.%s" % (module_name, name) in sys.modules
9188
)
9289
else:
9390
matches = (

0 commit comments

Comments
 (0)