Commits

Andreas Stührk committed 1f9c109

Workaround for issue #166.

This should fix the most common case for the segfault.

  • Participants
  • Parent commits 9fb8524

Comments (0)

Files changed (1)

bpython/importcompletion.py

             # which ends with a python extension, so work around.
             continue
         name = os.path.splitext(name)[0]
+        if py3 and name == "badsyntax_pep3120":
+            # Workaround for issue #166
+            continue
         try:
             with catch_warnings():
                 warnings.simplefilter("ignore", ImportWarning)