Utilities/ClassBrowsers/__init__.py

changeset 4407
146030035bdc
parent 4021
195a471c327b
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