Skip to content

Commit 5cfb66f

Browse files
committed
fix repeated endswith()
missed in #1213
1 parent be82345 commit 5cfb66f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mycli/clibuffer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ def _multiline_exception(text):
3737
# Ended with the current delimiter (usually a semi-column)
3838
text.endswith((
3939
special.get_current_delimiter(),
40-
text.endswith("\\g"),
41-
text.endswith("\\G"),
42-
text.endswith(r"\e"),
43-
text.endswith(r"\clip"),
40+
"\\g",
41+
"\\G",
42+
r"\e",
43+
r"\clip",
4444
))
4545
or
4646
# Exit doesn't need semi-column`

0 commit comments

Comments
 (0)