diff options
author | Ruben Gonzalez <rgonzalez@fluendo.com> | 2024-02-01 15:38:32 +0100 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2024-06-07 17:02:25 -0400 |
commit | ee479ded3f13107deb1ea86f2090745f6ffbca51 (patch) | |
tree | 6368286688a05b8489fe915c273fafcbe0010a6d /mesonbuild | |
parent | dfd22db4be6bfc0e64272479b51bbf314db04ac2 (diff) | |
download | meson-ee479ded3f13107deb1ea86f2090745f6ffbca51.zip meson-ee479ded3f13107deb1ea86f2090745f6ffbca51.tar.gz meson-ee479ded3f13107deb1ea86f2090745f6ffbca51.tar.bz2 |
wrap: default values for netrc are empty string from python 3.11
From python 3.11 [1]:
> The entry in the netrc file no longer needs to contain all tokens. The missing
> tokens' value default to an empty string. All the tokens and their values now
> can contain arbitrary characters, like whitespace and non-ASCII characters.
> If the login name is anonymous, it won't trigger the security check.
[1] https://github.com/python/cpython/commit/15409c720be0503131713e3d3abc1acd0da07378
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/wrap/wrap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/wrap/wrap.py b/mesonbuild/wrap/wrap.py index a8efd16..a260e0c 100644 --- a/mesonbuild/wrap/wrap.py +++ b/mesonbuild/wrap/wrap.py @@ -654,7 +654,7 @@ class Resolver: return None login, account, password = self.netrc.authenticators(netloc) - if account is not None: + if account: login = account return login, password |