MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / urlunparse

Function urlunparse

tools/python-3.11.9-amd64/Lib/urllib/parse.py:509–518  ·  view source on GitHub ↗

Put a parsed URL back together again. This may result in a slightly different, but equivalent URL, if the URL that was parsed originally had redundant delimiters, e.g. a ? with an empty query (the draft states that these are equivalent).

(components)

Source from the content-addressed store, hash-verified

507 return _coerce_result(v)
508
509def urlunparse(components):
510 """Put a parsed URL back together again. This may result in a
511 slightly different, but equivalent URL, if the URL that was parsed
512 originally had redundant delimiters, e.g. a ? with an empty query
513 (the draft states that these are equivalent)."""
514 scheme, netloc, url, params, query, fragment, _coerce_result = (
515 _coerce_args(*components))
516 if params:
517 url = "%s;%s" % (url, params)
518 return _coerce_result(urlunsplit((scheme, netloc, url, query, fragment)))
519
520def urlunsplit(components):
521 """Combine the elements of a tuple as returned by urlsplit() into a

Callers 13

http_error_302Method · 0.90
geturlMethod · 0.85
geturlMethod · 0.85
urljoinFunction · 0.85
urldefragFunction · 0.85
prepend_scheme_if_neededFunction · 0.85
urldefragauthFunction · 0.85
get_full_urlMethod · 0.85
prepare_urlMethod · 0.85
cleanMethod · 0.85
_get_projectMethod · 0.85

Calls 2

_coerce_argsFunction · 0.85
urlunsplitFunction · 0.85

Tested by

no test coverage detected