summaryrefslogtreecommitdiff
path: root/astroid/builder.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2015-12-17 19:52:58 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2015-12-17 19:52:58 +0200
commit663da9ca37bd4292d292919ec6e3f10e663d13ab (patch)
tree5a859896e431bf39d7754c338d0e022e373a5847 /astroid/builder.py
parenta2b44908240575c8b12591b03ad34d0b95c1278d (diff)
downloadastroid-git-663da9ca37bd4292d292919ec6e3f10e663d13ab.tar.gz
Don't use encoding in the except branch, since it's not defined.
Diffstat (limited to 'astroid/builder.py')
-rw-r--r--astroid/builder.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/astroid/builder.py b/astroid/builder.py
index 47aee988..7eed55fa 100644
--- a/astroid/builder.py
+++ b/astroid/builder.py
@@ -129,8 +129,8 @@ class AstroidBuilder(raw_building.InspectBuilder):
except UnicodeError: # wrong encoding
# detect_encoding returns utf-8 if no encoding specified
util.reraise(exceptions.AstroidBuildingError(
- 'Wrong ({encoding}) or no encoding specified for {filename}.',
- encoding=encoding, filename=path))
+ 'Wrong or no encoding specified for {filename}.',
+ filename=path))
with stream:
# get module name if necessary
if modname is None: