summaryrefslogtreecommitdiff
path: root/checkers/variables.py
diff options
context:
space:
mode:
authorcpopa <devnull@localhost>2014-08-08 19:31:05 +0300
committercpopa <devnull@localhost>2014-08-08 19:31:05 +0300
commita9e93977a6cf695c64e7b43cdda0c8e7181452ff (patch)
treee4f66991bf12c35737bf35c7ed37ef6c8c3e1ca5 /checkers/variables.py
parentd88a7ca5243185fa4bcd2353a2128baab89bacdb (diff)
downloadpylint-a9e93977a6cf695c64e7b43cdda0c8e7181452ff.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 338615f..c6b1279 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