We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28521a4 commit 6e75552Copy full SHA for 6e75552
bpython/importcompletion.py
@@ -123,7 +123,10 @@ def find_modules(path):
123
# Unfortunately, CPython just crashes if there is a directory
124
# which ends with a python extension, so work around.
125
continue
126
- name = os.path.splitext(name)[0]
+ for suffix in imp.get_suffixes():
127
+ if name.endswith(suffix[0]):
128
+ name = name[:-len(suffix[0])]
129
+ break
130
if py3 and name == "badsyntax_pep3120":
131
# Workaround for issue #166
132
0 commit comments