Skip to content

Commit 72e5aa1

Browse files
authored
bpo-29651 - Cover edge case of square brackets in urllib docs (#1128) (#1597)
(cherry picked from commit f6e863d)
1 parent dd2a09c commit 72e5aa1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Doc/library/urllib.parse.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ or on combining URL components into a URL string.
117117
See section :ref:`urlparse-result-object` for more information on the result
118118
object.
119119

120+
Unmatched square brackets in the :attr:`netloc` attribute will raise a
121+
:exc:`ValueError`.
122+
120123
.. versionchanged:: 3.2
121124
Added IPv6 URL parsing capabilities.
122125

@@ -230,6 +233,9 @@ or on combining URL components into a URL string.
230233
See section :ref:`urlparse-result-object` for more information on the result
231234
object.
232235

236+
Unmatched square brackets in the :attr:`netloc` attribute will raise a
237+
:exc:`ValueError`.
238+
233239

234240
.. function:: urlunsplit(parts)
235241

0 commit comments

Comments
 (0)