Bump yarl to 1.14.0 (#127924)
This commit is contained in:
parent
92f08be416
commit
c9311ea3c9
6 changed files with 11 additions and 3 deletions
|
@ -23,12 +23,16 @@ TO_REDACT = {
|
||||||
def redact_url(data: str) -> str:
|
def redact_url(data: str) -> str:
|
||||||
"""Redact credentials from string url."""
|
"""Redact credentials from string url."""
|
||||||
url = url_in = yarl.URL(data)
|
url = url_in = yarl.URL(data)
|
||||||
|
# https://github.com/pylint-dev/pylint/issues/3484
|
||||||
|
# pylint: disable-next=using-constant-test
|
||||||
if url_in.user:
|
if url_in.user:
|
||||||
url = url.with_user("****")
|
url = url.with_user("****")
|
||||||
|
# pylint: disable-next=using-constant-test
|
||||||
if url_in.password:
|
if url_in.password:
|
||||||
url = url.with_password("****")
|
url = url.with_password("****")
|
||||||
if url_in.path != "/":
|
if url_in.path != "/":
|
||||||
url = url.with_path("****")
|
url = url.with_path("****")
|
||||||
|
# pylint: disable-next=using-constant-test
|
||||||
if url_in.query_string:
|
if url_in.query_string:
|
||||||
url = url.with_query("****=****")
|
url = url.with_query("****=****")
|
||||||
return str(url)
|
return str(url)
|
||||||
|
|
|
@ -46,6 +46,8 @@ def async_process_play_media_url(
|
||||||
elif media_content_id[0] != "/":
|
elif media_content_id[0] != "/":
|
||||||
return media_content_id
|
return media_content_id
|
||||||
|
|
||||||
|
# https://github.com/pylint-dev/pylint/issues/3484
|
||||||
|
# pylint: disable-next=using-constant-test
|
||||||
if parsed.query:
|
if parsed.query:
|
||||||
logging.getLogger(__name__).debug(
|
logging.getLogger(__name__).debug(
|
||||||
"Not signing path for content with query param"
|
"Not signing path for content with query param"
|
||||||
|
|
|
@ -133,6 +133,8 @@ def process_plex_payload(
|
||||||
elif content_id.startswith(PLEX_URI_SCHEME):
|
elif content_id.startswith(PLEX_URI_SCHEME):
|
||||||
# Handle standard media_browser payloads
|
# Handle standard media_browser payloads
|
||||||
plex_url = URL(content_id)
|
plex_url = URL(content_id)
|
||||||
|
# https://github.com/pylint-dev/pylint/issues/3484
|
||||||
|
# pylint: disable-next=using-constant-test
|
||||||
if plex_url.name:
|
if plex_url.name:
|
||||||
if len(plex_url.parts) == 2:
|
if len(plex_url.parts) == 2:
|
||||||
if plex_url.name == "search":
|
if plex_url.name == "search":
|
||||||
|
|
|
@ -65,7 +65,7 @@ uv==0.4.17
|
||||||
voluptuous-openapi==0.0.5
|
voluptuous-openapi==0.0.5
|
||||||
voluptuous-serialize==2.6.0
|
voluptuous-serialize==2.6.0
|
||||||
voluptuous==0.15.2
|
voluptuous==0.15.2
|
||||||
yarl==1.13.1
|
yarl==1.14.0
|
||||||
zeroconf==0.135.0
|
zeroconf==0.135.0
|
||||||
|
|
||||||
# Constrain pycryptodome to avoid vulnerability
|
# Constrain pycryptodome to avoid vulnerability
|
||||||
|
|
|
@ -74,7 +74,7 @@ dependencies = [
|
||||||
"voluptuous==0.15.2",
|
"voluptuous==0.15.2",
|
||||||
"voluptuous-serialize==2.6.0",
|
"voluptuous-serialize==2.6.0",
|
||||||
"voluptuous-openapi==0.0.5",
|
"voluptuous-openapi==0.0.5",
|
||||||
"yarl==1.13.1",
|
"yarl==1.14.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
|
|
|
@ -44,4 +44,4 @@ uv==0.4.17
|
||||||
voluptuous==0.15.2
|
voluptuous==0.15.2
|
||||||
voluptuous-serialize==2.6.0
|
voluptuous-serialize==2.6.0
|
||||||
voluptuous-openapi==0.0.5
|
voluptuous-openapi==0.0.5
|
||||||
yarl==1.13.1
|
yarl==1.14.0
|
||||||
|
|
Loading…
Add table
Reference in a new issue