summaryrefslogtreecommitdiff
path: root/checkers/utils.py
diff options
context:
space:
mode:
authorSylvain Th?nault <sylvain.thenault@logilab.fr>2009-08-27 02:22:24 +0200
committerSylvain Th?nault <sylvain.thenault@logilab.fr>2009-08-27 02:22:24 +0200
commitaea3b26d028d0f804d04d080746360c871343e48 (patch)
treebb89ec815d9d78ae07b20f31b357a0f7c7d86b27 /checkers/utils.py
parentc39c7d0a2212061f999fac1b821c1d4850603624 (diff)
downloadpylint-aea3b26d028d0f804d04d080746360c871343e48.tar.gz
test and fix for #9215
Diffstat (limited to 'checkers/utils.py')
-rw-r--r--checkers/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkers/utils.py b/checkers/utils.py
index b5233f8..f3e2985 100644
--- a/checkers/utils.py
+++ b/checkers/utils.py
@@ -140,7 +140,7 @@ def is_func_decorator(node):
while parent is not None:
if isinstance(parent, astng.Decorators):
return True
- if parent.is_statement:
+ if parent.is_statement or isinstance(parent, astng.Lambda):
break
parent = parent.parent
return False