mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
wic: engine.py: use raw string for escape sequence
Fixes: | poky/scripts/lib/wic/engine.py:362: SyntaxWarning: invalid escape sequence '\/' (From OE-Core rev: ab3ed4270af1c8d4a4dd15b8c6998182801d4bce) Signed-off-by: Enrico Jörns <ejo@pengutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit e33d7241f6c2897e930aff41e18b154891197ab9) Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
committed by
Steve Sakoman
parent
97fae47a89
commit
62154d7594
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user