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