Show More
@@ -678,7 +678,11 b' class TransformerManager:' | |||||
678 |
|
678 | |||
679 | # Bail if we got one line and there are more closing parentheses than |
|
679 | # Bail if we got one line and there are more closing parentheses than | |
680 | # the opening ones |
|
680 | # the opening ones | |
681 | if len(lines) == 1 and has_sunken_brackets(tokens_by_line[0]): |
|
681 | if ( | |
|
682 | len(lines) == 1 | |||
|
683 | and tokens_by_line | |||
|
684 | and has_sunken_brackets(tokens_by_line[0]) | |||
|
685 | ): | |||
682 | return "invalid", None |
|
686 | return "invalid", None | |
683 |
|
687 | |||
684 | if not tokens_by_line: |
|
688 | if not tokens_by_line: |
General Comments 0
You need to be logged in to leave comments.
Login now