Little extension to the class browser module handling. 6_0_x

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 30 Aug 2015 19:33:16 +0200
branch
6_0_x
changeset 4408
a0b6d96985aa
parent 4406
cb7b6c556fc5
child 4413
db5287ff9b5f

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

eric ide

mercurial