diff options
author | Victor Stinner <vstinner@python.org> | 2023-06-06 18:35:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-06 18:35:51 (GMT) |
commit | 6c54e5d72166d012b52155cbf13af9e533290e06 (patch) | |
tree | 11a9c5c58f5b04f1818321d5f7a385d667fb7f8c /Lib | |
parent | 221d703498d84e363070c89c28f839edceaac9b2 (diff) | |
download | cpython-6c54e5d72166d012b52155cbf13af9e533290e06.zip cpython-6c54e5d72166d012b52155cbf13af9e533290e06.tar.gz cpython-6c54e5d72166d012b52155cbf13af9e533290e06.tar.bz2 |
gh-105376: Remove logging.Logger.warn() method (#105377)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/logging/__init__.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index 056380f..ba2ed44 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -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'. |