Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit de5d3ec

Browse files
committed
Retarget to Python 3.14.
1 parent 9f1a63e commit de5d3ec

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

Doc/whatsnew/3.14.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1580,6 +1580,11 @@ Deprecated
15801580
or *sequence* as keyword arguments is now deprecated.
15811581
(Contributed by Kirill Podoprigora in :gh:`121676`.)
15821582

1583+
* :mod:`logging`:
1584+
Support for custom logging handlers with the *strm* argument is deprecated
1585+
and scheduled for removal in Python 3.16. Define handlers with the *stream*
1586+
argument instead. (Contributed by Mariusz Felisiak in :gh:`115032`.)
1587+
15831588
* :mod:`!nturl2path`: This module is now deprecated. Call
15841589
:func:`urllib.request.url2pathname` and :func:`~urllib.request.pathname2url`
15851590
instead.

Lib/logging/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ def configure_handler(self, config):
882882
import warnings
883883
warnings.warn(
884884
"Support for custom logging handlers with the 'strm' argument "
885-
"is deprecated and scheduled for removal in Python 3.15. "
885+
"is deprecated and scheduled for removal in Python 3.16. "
886886
"Define handlers with the 'stream' argument instead.",
887887
DeprecationWarning,
888888
stacklevel=2,

Lib/test/test_logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3404,7 +3404,7 @@ def test_config5_ok(self):
34043404
def test_deprecation_warning_custom_handler_with_strm_arg(self):
34053405
msg = (
34063406
"Support for custom logging handlers with the 'strm' argument "
3407-
"is deprecated and scheduled for removal in Python 3.15. "
3407+
"is deprecated and scheduled for removal in Python 3.16. "
34083408
"Define handlers with the 'stream' argument instead."
34093409
)
34103410
with self.assertWarnsRegex(DeprecationWarning, msg):
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Support for custom logging handlers with the *strm* argument is deprecated
2-
and scheduled for removal in Python 3.15. Define handlers with the *stream*
2+
and scheduled for removal in Python 3.16. Define handlers with the *stream*
33
argument instead. Patch by Mariusz Felisiak.

0 commit comments

Comments
 (0)