diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-27 11:33:22 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-27 22:15:08 +0000 |
commit | 2f0b6cea2be7e89ef01181b10899b3e7f11e8f20 (patch) | |
tree | cc02311d3c42e30abc203a09e94dd90ae9bf1d66 /lib | |
parent | b8538c2088c199157404712a60a6740c926ce312 (diff) | |
download | bitbake-2f0b6cea2be7e89ef01181b10899b3e7f11e8f20.tar.gz |
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):
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bb/fetch2/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py index 8d05f0c3d..709372e16 100644 --- a/lib/bb/fetch2/__init__.py +++ b/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: |