Sun, 30 Aug 2015 19:33:16 +0200
Little extension to the class browser module handling.
(grafted from 146030035bdc885d5f66a0f608b628346ef70578)
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