summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSenthil Kumaran <skumaran@gatech.edu>2017-05-16 05:41:07 (GMT)
committerGitHub <noreply@github.com>2017-05-16 05:41:07 (GMT)
commit75b8a54bcad70806d9dcbbe20786f4d9092ab39c (patch)
tree997f0d9aa3d86e833ae6ccc29329378a616df2fb
parentaad1caf55f7fadb00ee097a1465bece4e128d8ef (diff)
downloadcpython-75b8a54bcad70806d9dcbbe20786f4d9092ab39c.zip
cpython-75b8a54bcad70806d9dcbbe20786f4d9092ab39c.tar.gz
cpython-75b8a54bcad70806d9dcbbe20786f4d9092ab39c.tar.bz2
bpo-29651 - Cover edge case of square brackets in urllib docs (#1128) (#1596)
(cherry picked from commit f6e863d868a621594df2a8abe072b5d4766e7137)
-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 676321b..1cc69e6 100644
--- a/Doc/library/urllib.parse.rst
+++ b/Doc/library/urllib.parse.rst
@@ -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`.