summaryrefslogtreecommitdiff
path: root/checkers/variables.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2014-08-08 19:31:05 +0300
committerClaudiu Popa <pcmanticore@gmail.com>2014-08-08 19:31:05 +0300
commit97a109e3933fd6ad93c4687b8efe2aa163a9ac2f (patch)
tree70af000cc47c8351fc7dd1bd63ad352752271833 /checkers/variables.py
parent96331ee58038689b8c0f967e27bd82036a5d7961 (diff)
downloadpylint-git-97a109e3933fd6ad93c4687b8efe2aa163a9ac2f.tar.gz
Cleanup.
Diffstat (limited to 'checkers/variables.py')
-rw-r--r--checkers/variables.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/checkers/variables.py b/checkers/variables.py
index 338615f2e..c6b1279d8 100644
--- a/checkers/variables.py
+++ b/checkers/variables.py
@@ -266,7 +266,9 @@ builtins. Remember that you should avoid to define new builtins when possible.'
# do not print Redefining builtin for additional builtins
self.add_message('redefined-builtin', args=name, node=stmts[0])
- @check_messages('unused-import', 'unused-wildcard-import', 'redefined-builtin', 'undefined-all-variable', 'invalid-all-object')
+ @check_messages('unused-import', 'unused-wildcard-import',
+ 'redefined-builtin', 'undefined-all-variable',
+ 'invalid-all-object')
def leave_module(self, node):
"""leave module: check globals
"""
@@ -284,7 +286,8 @@ builtins. Remember that you should avoid to define new builtins when possible.'
if not isinstance(elt_name, astroid.Const) \
or not isinstance(elt_name.value, basestring):
- self.add_message('invalid-all-object', args=elt.as_string(), node=elt)
+ self.add_message('invalid-all-object',
+ args=elt.as_string(), node=elt)
continue
elt_name = elt_name.value
# If elt is in not_consumed, remove it from not_consumed