summaryrefslogtreecommitdiff
path: root/checkers/variables.py
diff options
context:
space:
mode:
authorMichal Nowikowski <godfryd@gmail.com>2014-08-02 06:31:13 +0200
committerMichal Nowikowski <godfryd@gmail.com>2014-08-02 06:31:13 +0200
commit8ef5d79f2f65469ba08c3e5ef4f79be010e389da (patch)
tree2efbf7b939631357591ff259a9fe20a1142d12be /checkers/variables.py
parent067b083930d7aa751ac8d5698e90e49adeb63b2e (diff)
downloadpylint-8ef5d79f2f65469ba08c3e5ef4f79be010e389da.tar.gz
Fixed preparing unused-import message.
Diffstat (limited to 'checkers/variables.py')
-rw-r--r--checkers/variables.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkers/variables.py b/checkers/variables.py
index 3893a4a..68dd0d5 100644
--- a/checkers/variables.py
+++ b/checkers/variables.py
@@ -331,7 +331,7 @@ builtins. Remember that you should avoid to define new builtins when possible.'
self.add_message('unused-wildcard-import', args=name, node=stmt)
else:
if stmt.names[0][1] is None:
- msg = "%s imported from %s" % stmt.names[0][0], stmt.modname
+ msg = "%s imported from %s" % (stmt.names[0][0], stmt.modname)
else:
msg = "%s imported from %s as %s" % (stmt.names[0][0], stmt.modname, stmt.names[0][1])
self.add_message('unused-import', args=msg, node=stmt)