Utilities/ClassBrowsers/__init__.py

branch
6_0_x
changeset 4408
a0b6d96985aa
parent 4022
f5f42921717e
child 4631
5c1a96925da4
--- a/Utilities/ClassBrowsers/__init__.py	Sun Aug 30 19:21:37 2015 +0200
+++ b/Utilities/ClassBrowsers/__init__.py	Sun Aug 30 19:33:16 2015 +0200
@@ -143,3 +143,6 @@
                 if os.path.exists(pathname):
                     return (open(pathname), pathname, (ext, 'r', PY_SOURCE))
         raise ImportError
+    except SyntaxError:
+        # re-raise as an import error
+        raise ImportError

eric ide

mercurial