summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2025-06-05 13:10:18 +0200
committerSteve Sakoman <steve@sakoman.com>2025-06-05 08:41:15 -0700
commitfde11311089192d86e3ec787cb9925088652d6c0 (patch)
tree5da01b89f669bc689f51368a4c9f6d3d05835429
parent706ea47eaf823bef57760bb3608e49661c4c6a29 (diff)
downloadpoky-fde11311089192d86e3ec787cb9925088652d6c0.tar.gz
bitbake: fetch2: Avoid deprecation warning
>From re on python 3.13 onwards: "Passing count and flags as positional arguments is deprecated. In future Python versions they will be keyword-only parameters." Avoid the warning. (Bitbake rev: 65b744bec9756ee2f43adbfa33c14899638e2b9f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-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 e698fde19c..1a6ff25d4d 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -237,7 +237,7 @@ class URI(object):
237 # to RFC compliant URL format. E.g.: 237 # to RFC compliant URL format. E.g.:
238 # file://foo.diff -> file:foo.diff 238 # file://foo.diff -> file:foo.diff
239 if urlp.scheme in self._netloc_forbidden: 239 if urlp.scheme in self._netloc_forbidden:
240 uri = re.sub("(?<=:)//(?!/)", "", uri, 1) 240 uri = re.sub(r"(?<=:)//(?!/)", "", uri, count=1)
241 reparse = 1 241 reparse = 1
242 242
243 if reparse: 243 if reparse: