From cb7bcaaaa1a34d62518ce76e6386b16b002dcf34 Mon Sep 17 00:00:00 2001 From: jsbautista Date: Mon, 16 Sep 2024 13:57:21 -0500 Subject: [PATCH] Clean code --- qtconsole/ansi_code_processor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qtconsole/ansi_code_processor.py b/qtconsole/ansi_code_processor.py index 8c3d3303..8dfdcf50 100644 --- a/qtconsole/ansi_code_processor.py +++ b/qtconsole/ansi_code_processor.py @@ -95,7 +95,7 @@ def split_string(self, string): # strings ending with \r are assumed to be ending in \r\n since # \n is appended to output strings automatically. Accounting # for that, here. - last_char = None#'\n' if len(string) > 0 and string[-1] == '\n' else None + last_char = None string = string[:-1] if last_char is not None else string for match in ANSI_OR_SPECIAL_PATTERN.finditer(string):