[elbe-devel] [PATCH v2 11/66] commands chroot: Fix Pylint

Olivier Dion dion at linutronix.de
Fri Jun 5 19:06:35 CEST 2020


55:2: W1401: (anomalous-backslash-in-string)
55:4: W1401: (anomalous-backslash-in-string)

Signed-off-by: Olivier Dion <dion at linutronix.de>
Reviewed-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/commands/chroot.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/commands/chroot.py b/elbepack/commands/chroot.py
index 10e7535e..9f2d5243 100644
--- a/elbepack/commands/chroot.py
+++ b/elbepack/commands/chroot.py
@@ -52,7 +52,7 @@ def run_command(argv):
         os.environ["LANGUAGE"] = "C"
         os.environ["LC_ALL"] = "C"
         # TODO: howto set env in chroot?
-        os.environ["PS1"] = project.xml.text('project/name') + ': \w\$'
+        os.environ["PS1"] = project.xml.text('project/name') + r': \w\$'
 
         cmd = "/bin/bash"
 
-- 
2.27.0




More information about the elbe-devel mailing list