mirror of
git://git.yoctoproject.org/poky
synced 2026-08-13 06:44:59 +00:00
bitbake: fetch2: Avoid warning about incorrect character escaping in regex
Fixes:
lib/bb/fetch2/__init__.py:259: DeprecationWarning: invalid escape sequence \w
re.compile("^\w+:(?!//)").match(uri):
(Bitbake rev: 2f0b6cea2be7e89ef01181b10899b3e7f11e8f20)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
754976a116
commit
41d8955262
@ -256,7 +256,7 @@ class URI(object):
|
||||
|
||||
# Identify if the URI is relative or not
|
||||
if urlp.scheme in self._relative_schemes and \
|
||||
re.compile("^\w+:(?!//)").match(uri):
|
||||
re.compile(r"^\w+:(?!//)").match(uri):
|
||||
self.relative = True
|
||||
|
||||
if not self.relative:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user