1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-31 12:49:46 +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: 9c619f1eb1583582fafda6acabaf08a5761215ef)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2018-11-27 11:33:22 +00:00
parent 3896bf313f
commit 5ab68ca832
+1 -1
View File
@@ -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: