From: Howie Benefiel Date: Tue, 16 May 2017 04:48:16 +0000 (-0500) Subject: bpo-29651 - Cover edge case of square brackets in urllib docs (#1128) X-Git-Tag: v3.7.0a1~808 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f6e863d868a621594df2a8abe072b5d4766e7137;p=python bpo-29651 - Cover edge case of square brackets in urllib docs (#1128) --- diff --git a/Doc/library/urllib.parse.rst b/Doc/library/urllib.parse.rst index 6754e26387..c0a388c515 100644 --- a/Doc/library/urllib.parse.rst +++ b/Doc/library/urllib.parse.rst @@ -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`.