]> code.ossystems Code Review - openembedded-core.git/commit
packagedata.py: silence a DeprecationWarning
authorMingli Yu <mingli.yu@windriver.com>
Fri, 10 Dec 2021 11:08:12 +0000 (11:08 +0000)
committerAnuj Mittal <anuj.mittal@intel.com>
Mon, 13 Dec 2021 04:19:03 +0000 (12:19 +0800)
commit82f62387210757f66404f5d9c3f47461664124f5
treeaf54172387e4c6ab0ef8466bbb213973fe59744e
parente9f8162e619af05077eb5a30089cdbdcf309c161
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: Anuj Mittal <anuj.mittal@intel.com>
meta/lib/oe/packagedata.py