summaryrefslogtreecommitdiff
path: root/mixins.py
diff options
context:
space:
mode:
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):