From: Richard Purdie Date: Tue, 27 Nov 2018 11:33:22 +0000 (+0000) Subject: bitbake: fetch2: Avoid warning about incorrect character escaping in regex X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=41d89552620bfbc94031d314e6b3d0324f7a330e;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 8d05f0c3d82..709372e16f1 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py @@ -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: