Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Prev Previous commit
Next Next commit
Give link to specification. Reference in WG page in Seealso links.
  • Loading branch information
orsenthil committed Apr 28, 2021
commit e81f32f8bd211ef626eb89d10a92bb0ebbe48770
6 changes: 4 additions & 2 deletions Doc/library/urllib.parse.rst
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ or on combining URL components into a URL string.
``#``, ``@``, or ``:`` will raise a :exc:`ValueError`. If the URL is
decomposed before parsing, no error will be raised.

Following the specification in `WHATWG`_ which updates RFC 3986, ASCII newline
Following the `WHATWG spec`_ that updates RFC 3986, ASCII newline
``\n``, ``\r`` and tab ``\t`` characters are stripped from the url.
Comment thread
orsenthil marked this conversation as resolved.
Outdated

.. versionchanged:: 3.6
Expand All @@ -326,6 +326,8 @@ or on combining URL components into a URL string.
.. versionchanged:: 3.10
ASCII newline and tab characters are stripped from the url.
Comment thread
orsenthil marked this conversation as resolved.
Outdated

.. _WHATWG spec: https://url.spec.whatwg.org/#concept-basic-url-parser

.. function:: urlunsplit(parts)

Combine the elements of a tuple as returned by :func:`urlsplit` into a
Expand Down Expand Up @@ -707,4 +709,4 @@ task isn't already covered by the URL parsing functions above.
:rfc:`1738` - Uniform Resource Locators (URL)
This specifies the formal syntax and semantics of absolute URLs.

.. _WHATWG: https://url.spec.whatwg.org/#concept-basic-url-parser
.. _WHATWG: https://url.spec.whatwg.org/