diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-10-08 13:36:21 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-10-09 13:04:30 +0100 |
| commit | 8cd4ab4771c02c087655d06af90d060371318336 (patch) | |
| tree | e92cd543a734e5cd6112fd585115200fc661e419 /bitbake | |
| parent | 95fdbf04a936b52903325ace2836477de656c1db (diff) | |
| download | poky-8cd4ab4771c02c087655d06af90d060371318336.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: 016d872dc3c36792af5c84da1d35a5c86996d795)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
| -rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 33a8086f27..b194a79be9 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: |
