summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2023-11-16 07:22:41 +0000
committerNirbheek Chauhan <nirbheek@centricular.com>2023-11-16 07:25:25 +0000
commit499e680051cc9947432197026c42538474839fce (patch)
tree0269ceaddca6dcadfd44b390aef2ee92228e848c
parent927aa43759a155283922bec934671cb730677be8 (diff)
cerbero: Fix another python escape string warning1.22.7
This one is actually valid, we do not want Python to interpret \033 into \x2b. We want to put \033 as-is into the string for the shell to interpret as an escape code. Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1301>
-rw-r--r--cerbero/utils/shell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cerbero/utils/shell.py b/cerbero/utils/shell.py
index 60f07393..d37d410b 100644
--- a/cerbero/utils/shell.py
+++ b/cerbero/utils/shell.py
@@ -597,7 +597,7 @@ C:\\msys64\\msys2_shell.cmd -ucrt64 -defterm -no-start -here -use-full-path -c '
rc_file = '.bashrc'
rc_opt = '--rcfile'
prompt = os.environ.get('PS1', '')
- prompt = 'PS1="\[\033[01;32m\][cerbero-{platform}-{arch}]\[\033[00m\] $PS1"'.format(
+ prompt = r'PS1="\[\033[01;32m\][cerbero-{platform}-{arch}]\[\033[00m\] $PS1"'.format(
platform=platform, arch=arch)
shellrc = SHELLRC.format(rc_file=rc_file, sourcedirsh=sourcedirsh,
prompt=prompt, bash_completions=bash_completions, path=env['PATH'])