summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/packagedata.py
diff options
context:
space:
mode:
authorMingli Yu <mingli.yu@windriver.com>2021-10-11 16:28:48 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-13 09:42:01 +0100
commit433201369e3d8336335d052eea32fe64e811f6e6 (patch)
tree12cf4dbc1cf145b7d47d8f09bd808f405feabbd1 /meta/lib/oe/packagedata.py
parent97bce4f410aa13a6a3414319cada690eff352384 (diff)
downloadpoky-433201369e3d8336335d052eea32fe64e811f6e6.tar.gz
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 (From OE-Core rev: b5b70cba70067466da5e94f69632a2a029203838) Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/packagedata.py')
-rw-r--r--meta/lib/oe/packagedata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/packagedata.py b/meta/lib/oe/packagedata.py
index 02c81e5a52..212f048bc6 100644
--- a/meta/lib/oe/packagedata.py
+++ b/meta/lib/oe/packagedata.py
@@ -19,7 +19,7 @@ def read_pkgdatafile(fn):
19 import re 19 import re
20 with open(fn, 'r') as f: 20 with open(fn, 'r') as f:
21 lines = f.readlines() 21 lines = f.readlines()
22 r = re.compile("(^.+?):\s+(.*)") 22 r = re.compile(r"(^.+?):\s+(.*)")
23 for l in lines: 23 for l in lines:
24 m = r.match(l) 24 m = r.match(l)
25 if m: 25 if m: