diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2010-12-01 09:57:39 +0100 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2010-12-01 09:57:39 +0100 |
commit | 9ff3beb68314ade13fa58f3e67c97b0ed00abd31 (patch) | |
tree | b7a40ec4cc37e4fedad48e1e6a2fd314012564ee | |
parent | 454c449ea4d1423d5f9c7a20a27c9e3a5a1404a7 (diff) | |
download | astroid-git-9ff3beb68314ade13fa58f3e67c97b0ed00abd31.tar.gz |
cleanup: remove strange SyntaxError capture;
Such kind of captures should be done by manager.py or builder.py
-rw-r--r-- | mixins.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -140,7 +140,7 @@ class FromImportMixIn(BaseClass, FilterStmtsMixin): return mymodule try: return mymodule.import_module(modname, level=level) - except (ASTNGBuildingException, SyntaxError): + except ASTNGBuildingException: raise InferenceError(modname) def real_name(self, asname): |