From fdda6460c0821b194fd93baed9d2affbb6d4035b Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Sun, 22 May 2022 09:00:13 +0200 Subject: bitbake: osc: fix DeprecationWarning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fixes: bitbake/lib/bb/fetch2/osc.py:93: DeprecationWarning: invalid escape sequence '\d'   match = re.match('', output) (Bitbake rev: 6a346df51b96a6c0e1ee516df36eb0b6c292b063) Signed-off-by: Martin Jansa Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/osc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake') 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): api_source_cmd = self._buildosccommand(ud, d, "api_source") output = runfetchcmd(api_source_cmd, d) - match = re.match('', output) + match = re.match(r'', output) if match is None: raise FetchError("Unable to parse osc response", ud.url) return match.groups()[0] -- cgit v1.2.3-54-g00ecf