Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] wic: engine.py: use raw string for escape sequence
@ 2024-06-04  8:06 Enrico Jörns
  2024-06-04  8:06 ` [PATCH 2/2] wic: bootimg-efi: fix error handling Enrico Jörns
  2024-07-08 17:56 ` [OE-core] [PATCH 1/2] wic: engine.py: use raw string for escape sequence Gundlupet Raju, Sandeep
  0 siblings, 2 replies; 7+ messages in thread
From: Enrico Jörns @ 2024-06-04  8:06 UTC (permalink / raw)
  To: openembedded-core; +Cc: yocto

Fixes:

| poky/scripts/lib/wic/engine.py:362: SyntaxWarning: invalid escape sequence '\/'

Signed-off-by: Enrico Jörns <ejo@pengutronix.de>
---
 scripts/lib/wic/engine.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py
index 674ccfc244..ce7e6c5d75 100644
--- a/scripts/lib/wic/engine.py
+++ b/scripts/lib/wic/engine.py
@@ -359,7 +359,7 @@ class Disk:
         Remove files/dirs and their contents from the partition.
         This only applies to ext* partition.
         """
-        abs_path = re.sub('\/\/+', '/', path)
+        abs_path = re.sub(r'\/\/+', '/', path)
         cmd = "{} {} -wR 'rm \"{}\"'".format(self.debugfs,
                                             self._get_part_image(pnum),
                                             abs_path)
-- 
2.39.2



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-07-09 15:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-04  8:06 [PATCH 1/2] wic: engine.py: use raw string for escape sequence Enrico Jörns
2024-06-04  8:06 ` [PATCH 2/2] wic: bootimg-efi: fix error handling Enrico Jörns
2024-07-08 17:56 ` [OE-core] [PATCH 1/2] wic: engine.py: use raw string for escape sequence Gundlupet Raju, Sandeep
2024-07-08 21:32   ` Richard Purdie
2024-07-09 13:12     ` Steve Sakoman
2024-07-09 15:21       ` Gundlupet Raju, Sandeep
2024-07-09 15:41         ` Steve Sakoman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox