diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-09-17 14:59:22 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-19 11:33:14 +0100 |
commit | 4335ee7063162bfec6e341866f1803623fbefd6c (patch) | |
tree | 4a9fab1c37aaadb4587e3a4d8d8ea3baccf07317 /meta/classes/cpan-base.bbclass | |
parent | 2697d3984f8144ab001ed70ca713a10f6d1d83be (diff) | |
download | poky-4335ee7063162bfec6e341866f1803623fbefd6c.tar.gz |
cpan-base.bbclass: use raw string for regexp
This eliminates a deprecation warning and a future error as stipulated by
https://docs.python.org/3/library/re.html
(From OE-Core rev: 1753a8d8fd2e9d98255beb81428f70cdf3421321)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/cpan-base.bbclass')
-rw-r--r-- | meta/classes/cpan-base.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/cpan-base.bbclass b/meta/classes/cpan-base.bbclass index 9758065bfc..93d11e1bee 100644 --- a/meta/classes/cpan-base.bbclass +++ b/meta/classes/cpan-base.bbclass | |||
@@ -20,7 +20,7 @@ PERLLIBDIRS:class-native = "${libdir}/perl5" | |||
20 | def cpan_upstream_check_pattern(d): | 20 | def cpan_upstream_check_pattern(d): |
21 | for x in (d.getVar('SRC_URI') or '').split(' '): | 21 | for x in (d.getVar('SRC_URI') or '').split(' '): |
22 | if x.startswith("https://cpan.metacpan.org"): | 22 | if x.startswith("https://cpan.metacpan.org"): |
23 | _pattern = x.split('/')[-1].replace(d.getVar('PV'), '(?P<pver>\d+.\d+)') | 23 | _pattern = x.split('/')[-1].replace(d.getVar('PV'), r'(?P<pver>\d+.\d+)') |
24 | return _pattern | 24 | return _pattern |
25 | return '' | 25 | return '' |
26 | 26 | ||