From 7c03de7b6711cce918962a525646e7691812c35a Mon Sep 17 00:00:00 2001 From: Lucy Wang Date: Mon, 9 Aug 2021 14:43:16 +0800 Subject: [PATCH] fix sphinx --- w3lib/url.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/w3lib/url.py b/w3lib/url.py index 85498ed2..2a4d04c4 100644 --- a/w3lib/url.py +++ b/w3lib/url.py @@ -364,12 +364,12 @@ def any_to_uri(uri_or_path: str) -> str: ).encode() ) -_ParseDataURIResult = namedtuple( - "_ParseDataURIResult", "media_type media_type_parameters data" +ParseDataURIResult = namedtuple( + "ParseDataURIResult", "media_type media_type_parameters data" ) -def parse_data_uri(uri: StrOrBytes) -> _ParseDataURIResult: +def parse_data_uri(uri: StrOrBytes) -> ParseDataURIResult: """ Parse a data: URI, returning a 3-tuple of media type, dictionary of media @@ -426,7 +426,7 @@ def parse_data_uri(uri: StrOrBytes) -> _ParseDataURIResult: raise ValueError("invalid data URI") data = base64.b64decode(data) - return _ParseDataURIResult(media_type, media_type_params, data) + return ParseDataURIResult(media_type, media_type_params, data) __all__ = [