FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix check when matching modules · bpython/bpython@4e382a8 · GitHub

Commit 4e382a8

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

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎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)

Back | FazBrowse Home | New Git URL