From 68fa0a59e37a797bdaa5db8e5d61282f3080f546 Mon Sep 17 00:00:00 2001 From: Nick <0xb000@gmail.com> Date: Tue, 17 Dec 2024 01:10:06 +0200 Subject: [PATCH] Fix lint nit: not x in y -> x not in y --- mesonbuild/wrap/wrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/wrap/wrap.py b/mesonbuild/wrap/wrap.py index 448a307ee8d1..4e5ad169f22c 100644 --- a/mesonbuild/wrap/wrap.py +++ b/mesonbuild/wrap/wrap.py @@ -100,7 +100,7 @@ def expand_wrapdburl(urlstr: str, allow_insecure: bool = False) -> urllib.parse. else: if not is_wrapdb_subdomain(url.hostname): raise WrapException(f'{urlstr} is not a whitelisted WrapDB URL') - if has_ssl and not allow_insecure and not url.scheme in {'https', 'ftps'}: + if has_ssl and not allow_insecure and url.scheme not in {'https', 'ftps'}: raise WrapException(f'WrapDB did not have expected SSL url, instead got {urllib.parse.urlunparse(url)}') return url