qemu-stable
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Stable-8.1.3 05/55] tests/docker: avoid invalid escape in Python st


From: Thomas Huth
Subject: Re: [Stable-8.1.3 05/55] tests/docker: avoid invalid escape in Python string
Date: Mon, 2 Dec 2024 21:26:09 +0100
User-agent: Mozilla Thunderbird

On 09/11/2023 14.42, Michael Tokarev wrote:
From: Paolo Bonzini <pbonzini@redhat.com>

This is an error in Python 3.12; fix it by using a raw string literal.

Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit a5e3cb3b90a62a42cd19ad9a20ca25c7df1dc3da)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>

diff --git a/tests/docker/docker.py b/tests/docker/docker.py
index 688ef62989..3b8a26704d 100755
--- a/tests/docker/docker.py
+++ b/tests/docker/docker.py
@@ -186,7 +186,7 @@ def _check_binfmt_misc(executable):
                (binary))
          return None, True
- m = re.search("interpreter (\S+)\n", entry)
+    m = re.search(r"interpreter (\S+)\n", entry)
      interp = m.group(1)
      if interp and interp != executable:
          print("binfmt_misc for %s does not point to %s, using %s" %

 Hi Michael!

Could you add this patch to the stable-7.2 branch, too? I think it's missing there...

 Thanks,
  Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]