Skip to content

Commit

Permalink
Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbautista committed Sep 16, 2024
1 parent 41ea37e commit cb7bcaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qtconsole/ansi_code_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit cb7bcaa

Please sign in to comment.