summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-27 11:33:22 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-27 22:15:34 +0000
commit41d89552620bfbc94031d314e6b3d0324f7a330e (patch)
tree8a316786fd7bc45586ad1452e1271d9ef7f12fbc
parent754976a1164493947cb85940a7dd8e3b57646954 (diff)
downloadpoky-41d89552620bfbc94031d314e6b3d0324f7a330e.tar.gz
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>
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 8d05f0c3d8..709372e16f 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -256,7 +256,7 @@ class URI(object):
256 256
257 # Identify if the URI is relative or not 257 # Identify if the URI is relative or not
258 if urlp.scheme in self._relative_schemes and \ 258 if urlp.scheme in self._relative_schemes and \
259 re.compile("^\w+:(?!//)").match(uri): 259 re.compile(r"^\w+:(?!//)").match(uri):
260 self.relative = True 260 self.relative = True
261 261
262 if not self.relative: 262 if not self.relative: