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)
| 507 | return _coerce_result(v) |
| 508 | |
| 509 | def 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 | |
| 520 | def urlunsplit(components): |
| 521 | """Combine the elements of a tuple as returned by urlsplit() into a |
no test coverage detected