summaryrefslogtreecommitdiffstats
path: root/serviceconfig
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2024-01-28 21:11:46 +0100
committerSlávek Banko <[email protected]>2024-01-31 13:19:09 +0100
commit1825d1c2f638107ca5202ed66491d7d3407539f3 (patch)
tree82593294eed95a7f0623cbba664c460d090f1626 /serviceconfig
parent10f0a51a1784f390ef81bf59ab5ffc9342de3c81 (diff)
downloadtde-guidance-1825d1c2f638107ca5202ed66491d7d3407539f3.tar.gz
tde-guidance-1825d1c2f638107ca5202ed66491d7d3407539f3.zip
Fix invalid escape sequences.
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 13bfea6aff1ffed3aa172b5e7ae5540b7e2c3a4a)
Diffstat (limited to 'serviceconfig')
-rwxr-xr-xserviceconfig/serviceconfig.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/serviceconfig/serviceconfig.py b/serviceconfig/serviceconfig.py
index 1a0c802..42bb543 100755
--- a/serviceconfig/serviceconfig.py
+++ b/serviceconfig/serviceconfig.py
@@ -1437,9 +1437,9 @@ class CommandRunner(KDialogBase):
def slotReadyReadStdout(self):
# Remove the colors used by some programs.
# FIXME: this probably isn't neccessary anymore.
- uncolor = lambda text: re.compile('\\x1b\[[0-9]+;01m').sub("", \
- re.compile('\\x1b\[0m').sub("", re.compile('\\033\[1;[0-9]+m').sub("", \
- re.compile('\\033\[0m').sub("", text))))
+ uncolor = lambda text: re.compile('\\x1b\\[[0-9]+;01m').sub("", \
+ re.compile('\\x1b\\[0m').sub("", re.compile('\\033\\[1;[0-9]+m').sub("", \
+ re.compile('\\033\\[0m').sub("", text))))
self.output += uncolor(str(self.kid.readStdout()))
self.outputtextview.setText(self.output)
self.outputtextview.ensureVisible(0,self.outputtextview.contentsHeight())