]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
wic: engine.py: use raw string for escape sequence
authorEnrico Jörns <ejo@pengutronix.de>
Tue, 4 Jun 2024 08:06:20 +0000 (10:06 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 Jun 2024 10:53:22 +0000 (11:53 +0100)
Fixes:

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

Signed-off-by: Enrico Jörns <ejo@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/engine.py

index 674ccfc24418330a6a3d50aa8d02856379900817..ce7e6c5d752c4990997d0673b4183efe63fcdea2 100644 (file)
@@ -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)