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
commit13c7ed858ad76b858047f2bdc296c4deb2ac5770 (patch)
treea76edc4a11abfecb181d03716abbda974bf57e8c /checkers/variables.py
parent5ea88678edaa2768dfebfcd4b7a07a933d8e8e6f (diff)
downloadpylint-git-13c7ed858ad76b858047f2bdc296c4deb2ac5770.tar.gz
Fixed preparing unused-import message.
--HG-- branch : fix-293
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 3893a4ad2..68dd0d50b 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)