]> granicus.if.org Git - python/commitdiff
bpo-29651 - Cover edge case of square brackets in urllib docs (#1128)
authorHowie Benefiel <hben592@gmail.com>
Tue, 16 May 2017 04:48:16 +0000 (23:48 -0500)
committerSenthil Kumaran <skumaran@gatech.edu>
Tue, 16 May 2017 04:48:16 +0000 (21:48 -0700)
Doc/library/urllib.parse.rst

index 6754e263878b72ab106163308189574071601f65..c0a388c5153eae3d4743405438fddc96f7f0d2dd 100644 (file)
@@ -121,6 +121,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.
 
@@ -239,6 +242,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`.