diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2022-05-22 09:00:13 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-05-22 13:13:45 +0100 |
commit | fdda6460c0821b194fd93baed9d2affbb6d4035b (patch) | |
tree | 4b015df3a959930373355060f95a6dcb187902e2 /bitbake | |
parent | 458c70b9128bae5d4c0df6ddc6682f290d4b230b (diff) | |
download | poky-fdda6460c0821b194fd93baed9d2affbb6d4035b.tar.gz |
bitbake: osc: fix DeprecationWarning
* fixes:
bitbake/lib/bb/fetch2/osc.py:93: DeprecationWarning: invalid escape sequence '\d'
match = re.match('<directory ?.* rev="(\d+)".*>', output)
(Bitbake rev: 6a346df51b96a6c0e1ee516df36eb0b6c292b063)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/fetch2/osc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/osc.py b/bitbake/lib/bb/fetch2/osc.py index dd02f03780..86f8ddf47b 100644 --- a/bitbake/lib/bb/fetch2/osc.py +++ b/bitbake/lib/bb/fetch2/osc.py | |||
@@ -90,7 +90,7 @@ class Osc(FetchMethod): | |||
90 | api_source_cmd = self._buildosccommand(ud, d, "api_source") | 90 | api_source_cmd = self._buildosccommand(ud, d, "api_source") |
91 | 91 | ||
92 | output = runfetchcmd(api_source_cmd, d) | 92 | output = runfetchcmd(api_source_cmd, d) |
93 | match = re.match('<directory ?.* rev="(\d+)".*>', output) | 93 | match = re.match(r'<directory ?.* rev="(\d+)".*>', output) |
94 | if match is None: | 94 | if match is None: |
95 | raise FetchError("Unable to parse osc response", ud.url) | 95 | raise FetchError("Unable to parse osc response", ud.url) |
96 | return match.groups()[0] | 96 | return match.groups()[0] |