diff options
author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2009-08-27 02:22:24 +0200 |
---|---|---|
committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2009-08-27 02:22:24 +0200 |
commit | aea3b26d028d0f804d04d080746360c871343e48 (patch) | |
tree | bb89ec815d9d78ae07b20f31b357a0f7c7d86b27 /checkers/utils.py | |
parent | c39c7d0a2212061f999fac1b821c1d4850603624 (diff) | |
download | pylint-aea3b26d028d0f804d04d080746360c871343e48.tar.gz |
test and fix for #9215
Diffstat (limited to 'checkers/utils.py')
-rw-r--r-- | checkers/utils.py | 2 |
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 |