Skip to content

Commit eb66a30

Browse files
Bump version numbers to 3.14
1 parent 1298e83 commit eb66a30

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

Doc/library/urllib.parse.rst

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

196-
.. versionchanged:: 3.13
196+
.. versionchanged:: 3.14
197197
Values for ``url`` and ``scheme`` other than strings or bytes raise
198198
:exc:`TypeError` if true or :exc:`DeprecationWarning` if false (to be
199199
changed to :exc:`TypeError` in future versions of Python).
@@ -287,7 +287,7 @@ or on combining URL components into a URL string.
287287
query parameter separator. This has been changed to allow only a single
288288
separator key, with ``&`` as the default separator.
289289

290-
.. versionchanged:: 3.13
290+
.. versionchanged:: 3.14
291291
Values for ``qs`` and ``separator`` other than strings or bytes raise
292292
:exc:`TypeError` if true or :exc:`DeprecationWarning` if false (to be
293293
changed to :exc:`TypeError` in future versions of Python).
@@ -301,7 +301,7 @@ or on combining URL components into a URL string.
301301
unnecessary delimiters (for example, a ``?`` with an empty query; the RFC
302302
states that these are equivalent).
303303

304-
.. versionchanged:: 3.13
304+
.. versionchanged:: 3.14
305305
Items in ``parts`` other than strings or bytes raise
306306
:exc:`TypeError` if true or :exc:`DeprecationWarning` if false (to be
307307
changed to :exc:`TypeError` in future versions of Python).
@@ -379,7 +379,7 @@ or on combining URL components into a URL string.
379379
.. versionchanged:: 3.12
380380
Leading WHATWG C0 control and space characters are stripped from the URL.
381381

382-
.. versionchanged:: 3.13
382+
.. versionchanged:: 3.14
383383
Values for the url argument and ``scheme`` other than strings or bytes raise
384384
:exc:`TypeError` if true or :exc:`DeprecationWarning` if false (to be
385385
changed to :exc:`TypeError` in future versions of Python).
@@ -394,7 +394,7 @@ or on combining URL components into a URL string.
394394
URL that was parsed originally had unnecessary delimiters (for example, a ?
395395
with an empty query; the RFC states that these are equivalent).
396396

397-
.. versionchanged:: 3.13
397+
.. versionchanged:: 3.14
398398
Items in ``parts`` other than strings or bytes raise
399399
:exc:`TypeError` if true or :exc:`DeprecationWarning` if false (to be
400400
changed to :exc:`TypeError` in future versions of Python).
@@ -433,7 +433,7 @@ or on combining URL components into a URL string.
433433

434434
Behavior updated to match the semantics defined in :rfc:`3986`.
435435

436-
.. versionchanged:: 3.13
436+
.. versionchanged:: 3.14
437437
Values for ``base`` and ``url`` other than strings or bytes raise
438438
:exc:`TypeError` if true or :exc:`DeprecationWarning` if false (to be
439439
changed to :exc:`TypeError` in future versions of Python).
@@ -463,7 +463,7 @@ or on combining URL components into a URL string.
463463
.. versionchanged:: 3.2
464464
Result is a structured object rather than a simple 2-tuple.
465465

466-
.. versionchanged:: 3.13
466+
.. versionchanged:: 3.14
467467
Values other than strings or bytes raise
468468
:exc:`TypeError` if true or :exc:`DeprecationWarning` if false (to be
469469
changed to :exc:`TypeError` in future versions of Python).

Doc/whatsnew/3.14.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,11 @@ Deprecated
552552
use :func:`inspect.iscoroutinefunction` instead.
553553
(Contributed by Jiahao Li and Kumar Aditya in :gh:`122875`.)
554554

555+
* Providing anything but a string or bytes object to :mod:`urllib.parse`
556+
functions expecting strings or bytes now raises :exc:`DeprecationWarning`
557+
if the value tests false, or :exc:`TypeError` if it tests true.
558+
(Contributed by Jacob Walls in :issue:`19094`.)
559+
555560
.. Add deprecations above alphabetically, not here at the end.
556561
557562
.. include:: ../deprecations/c-api-pending-removal-in-3.15.rst

0 commit comments

Comments
 (0)