Skip to content

Commit

Permalink
ironically remove space to comply with flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
DesbyP committed Feb 28, 2020
1 parent 7400aff commit c88d21e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycodestyle.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c88d21e

Please sign in to comment.