Skip to content

Commit

Permalink
Fix lint nit: not x in y -> x not in y
Browse files Browse the repository at this point in the history
  • Loading branch information
klokik committed Dec 16, 2024
1 parent 5f70ad3 commit 69c69bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/wrap/wrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 69c69bf

Please sign in to comment.