mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-105376: Remove logging.Logger.warn() method (#105377)
This commit is contained in:
parent
221d703498
commit
6c54e5d721
4 changed files with 14 additions and 9 deletions
|
@ -1550,11 +1550,6 @@ class Logger(Filterer):
|
|||
if self.isEnabledFor(WARNING):
|
||||
self._log(WARNING, msg, args, **kwargs)
|
||||
|
||||
def warn(self, msg, *args, **kwargs):
|
||||
warnings.warn("The 'warn' method is deprecated, "
|
||||
"use 'warning' instead", DeprecationWarning, 2)
|
||||
self.warning(msg, *args, **kwargs)
|
||||
|
||||
def error(self, msg, *args, **kwargs):
|
||||
"""
|
||||
Log 'msg % args' with severity 'ERROR'.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue