diff options
author | Michal Nowikowski <godfryd@gmail.com> | 2014-08-02 06:31:13 +0200 |
---|---|---|
committer | Michal Nowikowski <godfryd@gmail.com> | 2014-08-02 06:31:13 +0200 |
commit | 13c7ed858ad76b858047f2bdc296c4deb2ac5770 (patch) | |
tree | a76edc4a11abfecb181d03716abbda974bf57e8c /checkers/variables.py | |
parent | 5ea88678edaa2768dfebfcd4b7a07a933d8e8e6f (diff) | |
download | pylint-git-13c7ed858ad76b858047f2bdc296c4deb2ac5770.tar.gz |
Fixed preparing unused-import message.
--HG--
branch : fix-293
Diffstat (limited to 'checkers/variables.py')
-rw-r--r-- | checkers/variables.py | 2 |
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) |