Skip to content

Commit cbcf063

Browse files
committed
Flatten expression
1 parent b8693e4 commit cbcf063

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Lib/_pyrepl/utils.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,8 @@ def gen_colors_from_token_stream(
239239
yield ColorSpan(span, "soft_keyword")
240240
elif (
241241
token.string in COMMANDS
242-
and (
243-
(not prev_token or prev_token.exact_type == T.INDENT)
244-
and (not next_token or next_token.type == T.NEWLINE)
245-
)
242+
and (not prev_token or prev_token.exact_type == T.INDENT)
243+
and (not next_token or next_token.type == T.NEWLINE)
246244
):
247245
span = Span.from_token(token, line_lengths)
248246
yield ColorSpan(span, "command")

0 commit comments

Comments
 (0)