mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00: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: e33d7241f6c2897e930aff41e18b154891197ab9) Signed-off-by: Enrico Jörns <ejo@pengutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
008b5bffdf
commit
4f600110ee
@@ -359,7 +359,7 @@ class Disk:
|
|||||||
Remove files/dirs and their contents from the partition.
|
Remove files/dirs and their contents from the partition.
|
||||||
This only applies to ext* partition.
|
This only applies to ext* partition.
|
||||||
"""
|
"""
|
||||||
abs_path = re.sub('\/\/+', '/', path)
|
abs_path = re.sub(r'\/\/+', '/', path)
|
||||||
cmd = "{} {} -wR 'rm \"{}\"'".format(self.debugfs,
|
cmd = "{} {} -wR 'rm \"{}\"'".format(self.debugfs,
|
||||||
self._get_part_image(pnum),
|
self._get_part_image(pnum),
|
||||||
abs_path)
|
abs_path)
|
||||||
|
|||||||
Reference in New Issue
Block a user