Skip to content

Commit c879bc6

Browse files
committed
Workaround for issue bpython#166.
This should fix the most common case for the segfault.
1 parent c4f93fe commit c879bc6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bpython/importcompletion.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ def find_modules(path):
120120
# which ends with a python extension, so work around.
121121
continue
122122
name = os.path.splitext(name)[0]
123+
if py3 and name == "badsyntax_pep3120":
124+
# Workaround for issue #166
125+
continue
123126
try:
124127
with catch_warnings():
125128
warnings.simplefilter("ignore", ImportWarning)

0 commit comments

Comments
 (0)