bpo-29651 - Cover edge case of square brackets in urllib docs (#1128) (#1596)

(cherry picked from commit f6e863d868)
This commit is contained in:
Senthil Kumaran 2017-05-15 22:41:07 -07:00 committed by GitHub
parent aad1caf55f
commit 75b8a54bca
1 changed files with 6 additions and 0 deletions

View File

@ -118,6 +118,9 @@ or on combining URL components into a URL string.
an invalid port is specified in the URL. See section an invalid port is specified in the URL. See section
:ref:`urlparse-result-object` for more information on the result object. :ref:`urlparse-result-object` for more information on the result object.
Unmatched square brackets in the :attr:`netloc` attribute will raise a
:exc:`ValueError`.
.. versionchanged:: 3.2 .. versionchanged:: 3.2
Added IPv6 URL parsing capabilities. Added IPv6 URL parsing capabilities.
@ -236,6 +239,9 @@ or on combining URL components into a URL string.
an invalid port is specified in the URL. See section an invalid port is specified in the URL. See section
:ref:`urlparse-result-object` for more information on the result object. :ref:`urlparse-result-object` for more information on the result object.
Unmatched square brackets in the :attr:`netloc` attribute will raise a
:exc:`ValueError`.
.. versionchanged:: 3.6 .. versionchanged:: 3.6
Out-of-range port numbers now raise :exc:`ValueError`, instead of Out-of-range port numbers now raise :exc:`ValueError`, instead of
returning :const:`None`. returning :const:`None`.