diff options
author | Victor Stinner <vstinner@python.org> | 2023-07-09 08:32:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-09 08:32:50 (GMT) |
commit | dcc028d92428bd57358a5028ada2a53fc79fc365 (patch) | |
tree | a3e01491722c6e08e290bad3224568b9376e433e /Misc | |
parent | da98ed0aa040791ef08b24befab697038c8c9fd5 (diff) | |
download | cpython-dcc028d92428bd57358a5028ada2a53fc79fc365.zip cpython-dcc028d92428bd57358a5028ada2a53fc79fc365.tar.gz cpython-dcc028d92428bd57358a5028ada2a53fc79fc365.tar.bz2 |
gh-105376: Remove logging.warn() and LoggerAdapter.warn() (#106553)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2023-06-06-15-32-44.gh-issue-105376.W4oDQp.rst | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-06-06-15-32-44.gh-issue-105376.W4oDQp.rst b/Misc/NEWS.d/next/Library/2023-06-06-15-32-44.gh-issue-105376.W4oDQp.rst index a7d3172..2ed6b5e 100644 --- a/Misc/NEWS.d/next/Library/2023-06-06-15-32-44.gh-issue-105376.W4oDQp.rst +++ b/Misc/NEWS.d/next/Library/2023-06-06-15-32-44.gh-issue-105376.W4oDQp.rst @@ -1,4 +1,5 @@ -Remove the undocumented and untested ``logging.Logger.warn()`` method, -deprecated since Python 3.3, which was an alias to the -:meth:`logging.Logger.warning` method: use the :meth:`logging.Logger.warning` -method instead. Patch by Victor Stinner. +:mod:`logging`: Remove undocumented and untested ``Logger.warn()`` and +``LoggerAdapter.warn()`` methods and ``logging.warn()`` function. Deprecated +since Python 3.3, they were aliases to the :meth:`logging.Logger.warning` +method, :meth:`!logging.LoggerAdapter.warning` method and +:func:`logging.warning` function. Patch by Victor Stinner. |