]> code.ossystems Code Review - openembedded-core.git/commit
packagedata.py: silence a DeprecationWarning
authorMingli Yu <mingli.yu@windriver.com>
Mon, 11 Oct 2021 08:28:48 +0000 (16:28 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 13 Oct 2021 08:41:39 +0000 (09:41 +0100)
commitb5b70cba70067466da5e94f69632a2a029203838
tree92ac1cc9f0365520724b4e2976959ab45f8561c4
parent87fd3080c86f6987e4403a2cb8263564f6e1ac4f
packagedata.py: silence a DeprecationWarning

Use regex strings (r’’) to silence below deprecation warning [1]:
 $ cat tmp/work/intel_x86_64-wrs-linux/linux-yocto/5.10.x+gitAUTOINC+917c420111_373c02c3ca-r0/temp/log.do_deploy
 [snip]
 /build/layers/oe-core/meta/lib/oe/packagedata.py:22: DeprecationWarning: invalid escape sequence \s
 r = re.compile("(^.+?):\s+(.*)")
 [snip]

[1] https://docs.python.org/3/library/re.html

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/packagedata.py