summaryrefslogtreecommitdiff
path: root/astroid/builder.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2015-12-06 17:11:50 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2015-12-06 17:11:50 +0200
commit433a5b874cb8bff40c26451a75586be512707bab (patch)
treeadc480a95412ce06cba1dd6a182ce88318717679 /astroid/builder.py
parent4ef9c896f4f8835dc1d49c70844fbc9337b24f93 (diff)
downloadastroid-git-433a5b874cb8bff40c26451a75586be512707bab.tar.gz
AstroidBuildingException is now AstroidBuildingError.
The first name will exist until astroid 2.0.
Diffstat (limited to 'astroid/builder.py')
-rw-r--r--astroid/builder.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/astroid/builder.py b/astroid/builder.py
index 089cdd0a..21b227d1 100644
--- a/astroid/builder.py
+++ b/astroid/builder.py
@@ -118,7 +118,7 @@ class AstroidBuilder(raw_building.InspectBuilder):
try:
stream, encoding, data = open_source_file(path)
except IOError as exc:
- util.reraise(exceptions.AstroidBuildingException(
+ util.reraise(exceptions.AstroidBuildingError(
'Unable to load file {path}:\n{error}',
modname=modname, path=path, error=exc))
except (SyntaxError, LookupError) as exc:
@@ -127,7 +127,7 @@ class AstroidBuilder(raw_building.InspectBuilder):
'{error}', modname=modname, path=path, error=exc))
except UnicodeError: # wrong encoding
# detect_encoding returns utf-8 if no encoding specified
- util.reraise(exceptions.AstroidBuildingException(
+ util.reraise(exceptions.AstroidBuildingError(
'Wrong ({encoding}) or no encoding specified for {filename}.',
encoding=encoding, filename=filename))
with stream:
@@ -202,7 +202,7 @@ class AstroidBuilder(raw_building.InspectBuilder):
if name == '*':
try:
imported = node.do_import_module()
- except exceptions.AstroidBuildingException:
+ except exceptions.AstroidBuildingError:
continue
for name in imported.wildcard_import_names():
node.parent.set_local(name, node)