From c88d21ecce0dd0a9d77b7bd2c88024809f8b6f13 Mon Sep 17 00:00:00 2001 From: DesbyP Date: Fri, 28 Feb 2020 19:42:40 +0100 Subject: [PATCH] ironically remove space to comply with flake8 --- pycodestyle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pycodestyle.py b/pycodestyle.py index b4452d9e..b331889c 100755 --- a/pycodestyle.py +++ b/pycodestyle.py @@ -461,7 +461,7 @@ def is_a_slice(line, space_pos): # check for a lambda expression nested in brackets if space_pos > 6: last_opened = parentheses_brackets_braces[-1] - between_bracket_colon = line[last_opened[1] + 1 : space_pos] + between_bracket_colon = line[last_opened[1] + 1: space_pos] is_lambda_expr = 'lambda' in between_bracket_colon return (is_within_brackets and not is_lambda_expr)