summaryrefslogtreecommitdiff
path: root/mixins.py
diff options
context:
space:
mode:
authorClaudiu Popa <cpopa@cloudbasesolutions.com>2014-10-27 00:35:18 +0200
committerClaudiu Popa <cpopa@cloudbasesolutions.com>2014-10-27 00:35:18 +0200
commit09cd8b7eefb021f2d8327e42614bca7cbb8915f2 (patch)
treee54d46837b31f00197106ad6f104f3444c65b521 /mixins.py
parent1c5cab5ce9c6bf5c2a161748d03a5fa44a69e15e (diff)
downloadastroid-git-09cd8b7eefb021f2d8327e42614bca7cbb8915f2.tar.gz
Make the source compatible with Python 2.7 and 3.3+.
Diffstat (limited to 'mixins.py')
-rw-r--r--mixins.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mixins.py b/mixins.py
index 1b34c402..dbf1673a 100644
--- a/mixins.py
+++ b/mixins.py
@@ -107,7 +107,7 @@ class FromImportMixIn(FilterStmtsMixin):
return mymodule.import_module(modname, level=level)
except AstroidBuildingException:
raise InferenceError(modname)
- except SyntaxError, ex:
+ except SyntaxError as ex:
raise InferenceError(str(ex))
def real_name(self, asname):