summaryrefslogtreecommitdiff
path: root/checkers/variables.py
diff options
context:
space:
mode:
authorSylvain Th?nault <sylvain.thenault@logilab.fr>2012-09-19 17:36:47 +0200
committerSylvain Th?nault <sylvain.thenault@logilab.fr>2012-09-19 17:36:47 +0200
commitd4d8fe742e8860df3a699a4999be133a1fc8db42 (patch)
tree0d616ccb2d84a926c1dba1f67c4181a3956cd27f /checkers/variables.py
parentfcc1a91b50f564627716230ffc159381b241c07f (diff)
downloadpylint-d4d8fe742e8860df3a699a4999be133a1fc8db42.tar.gz
lint fixes
Diffstat (limited to 'checkers/variables.py')
-rw-r--r--checkers/variables.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/checkers/variables.py b/checkers/variables.py
index e3812fc..01ea6f8 100644
--- a/checkers/variables.py
+++ b/checkers/variables.py
@@ -31,9 +31,9 @@ from pylint.checkers.utils import (PYMETHODS, is_ancestor_name, is_builtin,
def in_for_else_branch(parent, stmt):
- """Returns True if stmt in inside the else branch for a parent For stmt."""
- return (isinstance(parent, astng.For) and
- any(else_stmt.parent_of(stmt) for else_stmt in parent.orelse))
+ """Returns True if stmt in inside the else branch for a parent For stmt."""
+ return (isinstance(parent, astng.For) and
+ any(else_stmt.parent_of(stmt) for else_stmt in parent.orelse))
def overridden_method(klass, name):
"""get overridden method if any"""