summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorHowie Benefiel <hben592@gmail.com>2017-05-16 04:48:16 (GMT)
committerSenthil Kumaran <skumaran@gatech.edu>2017-05-16 04:48:16 (GMT)
commitf6e863d868a621594df2a8abe072b5d4766e7137 (patch)
tree52a3722f5dd2372c858711696b25989b24f2c4a1 /Doc
parent7d6320ba47a229543acc0af6a64bc4e414932273 (diff)
downloadcpython-f6e863d868a621594df2a8abe072b5d4766e7137.zip
cpython-f6e863d868a621594df2a8abe072b5d4766e7137.tar.gz
cpython-f6e863d868a621594df2a8abe072b5d4766e7137.tar.bz2
bpo-29651 - Cover edge case of square brackets in urllib docs (#1128)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/urllib.parse.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/urllib.parse.rst b/Doc/library/urllib.parse.rst
index 6754e26..c0a388c 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`.