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:41 +0100 |
commit | 6a346df51b96a6c0e1ee516df36eb0b6c292b063 (patch) | |
tree | fb46d22da75e1f2747f995a89c447a9d0dbfb120 | |
parent | aa4cee1bb7415c498e4dc6af4dbb3d0c841faf2e (diff) | |
download | bitbake-6a346df51b96a6c0e1ee516df36eb0b6c292b063.tar.gz |
osc: fix DeprecationWarning
* fixes:
bitbake/lib/bb/fetch2/osc.py:93: DeprecationWarning: invalid escape sequence '\d'
match = re.match('<directory ?.* rev="(\d+)".*>', output)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/fetch2/osc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/fetch2/osc.py b/lib/bb/fetch2/osc.py index dd02f0378..86f8ddf47 100644 --- a/lib/bb/fetch2/osc.py +++ b/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('<directory ?.* rev="(\d+)".*>', output) + match = re.match(r'<directory ?.* rev="(\d+)".*>', output) if match is None: raise FetchError("Unable to parse osc response", ud.url) return match.groups()[0] |