Little extension to the class browser module handling.

Sun, 30 Aug 2015 19:33:16 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 30 Aug 2015 19:33:16 +0200
changeset 4407
146030035bdc
parent 4405
c110bcfaad81
child 4409
ff1cb0107d40

Little extension to the class browser module handling.

Utilities/ClassBrowsers/__init__.py file | annotate | diff | comparison | revisions
--- 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