Skip to content

Commit 2aca42a

Browse files
Bump version references to 3.12
1 parent 6fd983a commit 2aca42a

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

Doc/library/urllib.parse.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ or on combining URL components into a URL string.
176176
Characters that affect netloc parsing under NFKC normalization will
177177
now raise :exc:`ValueError`.
178178

179-
.. versionchanged:: 3.11
179+
.. versionchanged:: 3.12
180180
Values for ``url`` and ``scheme`` other than strings or bytes raise
181181
:exc:`TypeError` if true or :exc:`DeprecationWarning` if false (to be
182182
changed to :exc:`TypeError` in future versions of Python).
@@ -270,7 +270,7 @@ or on combining URL components into a URL string.
270270
query parameter separator. This has been changed to allow only a single
271271
separator key, with ``&`` as the default separator.
272272

273-
.. versionchanged:: 3.11
273+
.. versionchanged:: 3.12
274274
Values for ``qs`` and ``separator`` other than strings or bytes raise
275275
:exc:`TypeError` if true or :exc:`DeprecationWarning` if false (to be
276276
changed to :exc:`TypeError` in future versions of Python).
@@ -284,7 +284,7 @@ or on combining URL components into a URL string.
284284
unnecessary delimiters (for example, a ``?`` with an empty query; the RFC
285285
states that these are equivalent).
286286

287-
.. versionchanged:: 3.11
287+
.. versionchanged:: 3.12
288288
Items in ``parts`` other than strings or bytes raise
289289
:exc:`TypeError` if true or :exc:`DeprecationWarning` if false (to be
290290
changed to :exc:`TypeError` in future versions of Python).
@@ -353,7 +353,7 @@ or on combining URL components into a URL string.
353353
.. versionchanged:: 3.10
354354
ASCII newline and tab characters are stripped from the URL.
355355

356-
.. versionchanged:: 3.11
356+
.. versionchanged:: 3.12
357357
Values for the url argument and ``scheme`` other than strings or bytes raise
358358
:exc:`TypeError` if true or :exc:`DeprecationWarning` if false (to be
359359
changed to :exc:`TypeError` in future versions of Python).
@@ -369,7 +369,7 @@ or on combining URL components into a URL string.
369369
URL that was parsed originally had unnecessary delimiters (for example, a ?
370370
with an empty query; the RFC states that these are equivalent).
371371

372-
.. versionchanged:: 3.11
372+
.. versionchanged:: 3.12
373373
Items in ``parts`` other than strings or bytes raise
374374
:exc:`TypeError` if true or :exc:`DeprecationWarning` if false (to be
375375
changed to :exc:`TypeError` in future versions of Python).
@@ -408,7 +408,7 @@ or on combining URL components into a URL string.
408408

409409
Behavior updated to match the semantics defined in :rfc:`3986`.
410410

411-
.. versionchanged:: 3.11
411+
.. versionchanged:: 3.12
412412
Values for ``base`` and ``url`` other than strings or bytes raise
413413
:exc:`TypeError` if true or :exc:`DeprecationWarning` if false (to be
414414
changed to :exc:`TypeError` in future versions of Python).
@@ -438,7 +438,7 @@ or on combining URL components into a URL string.
438438
.. versionchanged:: 3.2
439439
Result is a structured object rather than a simple 2-tuple.
440440

441-
.. versionchanged:: 3.11
441+
.. versionchanged:: 3.12
442442
Values other than strings or bytes raise
443443
:exc:`TypeError` if true or :exc:`DeprecationWarning` if false (to be
444444
changed to :exc:`TypeError` in future versions of Python).

Doc/whatsnew/3.11.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1579,11 +1579,6 @@ C API:
15791579
* :c:type:`PyUnicodeObject`
15801580
* :c:func:`PyUnicode_InternImmortal()`
15811581

1582-
* Providing anything but a string or bytes object to :mod:`urllib.parse`
1583-
functions expecting strings or bytes now raises :exc:`DeprecationWarning`
1584-
if the value tests false, or :exc:`TypeError` if it tests true.
1585-
(Contributed by Jacob Walls in :issue:`19094`.)
1586-
15871582

15881583
Removed
15891584
=======

Doc/whatsnew/3.12.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,11 @@ Deprecated
227227
:exc:`ImportWarning`).
228228
(Contributed by Brett Cannon in :gh:`65961`.)
229229

230+
* Providing anything but a string or bytes object to :mod:`urllib.parse`
231+
functions expecting strings or bytes now raises :exc:`DeprecationWarning`
232+
if the value tests false, or :exc:`TypeError` if it tests true.
233+
(Contributed by Jacob Walls in :issue:`19094`.)
234+
230235

231236
Pending Removal in Python 3.13
232237
------------------------------

0 commit comments

Comments
 (0)