Kaydet (Commit) 75b8a54b authored tarafından Senthil Kumaran's avatar Senthil Kumaran Kaydeden (comit) GitHub

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

(cherry picked from commit f6e863d8)
üst aad1caf5
......@@ -118,6 +118,9 @@ or on combining URL components into a URL string.
an invalid port is specified in the URL. See section
: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
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
: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
Out-of-range port numbers now raise :exc:`ValueError`, instead of
returning :const:`None`.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment