diff options
author | RĂ©mi Lapeyre <remi.lapeyre@lenstra.fr> | 2020-06-15 08:03:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-15 08:03:07 (GMT) |
commit | 25f38d7044a3a47465edd851c4e04f337b2c4b9b (patch) | |
tree | 0daa05cc77f044e6ffcffb59960dbadf2e722f66 /Lib/logging/__init__.py | |
parent | 5fc4f8ae68aecf07f2ae4029dbcf997027489944 (diff) | |
download | cpython-25f38d7044a3a47465edd851c4e04f337b2c4b9b.zip cpython-25f38d7044a3a47465edd851c4e04f337b2c4b9b.tar.gz cpython-25f38d7044a3a47465edd851c4e04f337b2c4b9b.tar.bz2 |
bpo-40836: Add docstring to logging.fatal() and logging.Logger.fatal() (GH-20563)
Automerge-Triggered-By: @vsajip
Diffstat (limited to 'Lib/logging/__init__.py')
-rw-r--r-- | Lib/logging/__init__.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index 6d27301..1c446fd 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -1480,7 +1480,11 @@ class Logger(Filterer): if self.isEnabledFor(CRITICAL): self._log(CRITICAL, msg, args, **kwargs) - fatal = critical + def fatal(self, msg, *args, **kwargs): + """ + Don't use this method, use critical() instead. + """ + self.critical(msg, *args, **kwargs) def log(self, level, msg, *args, **kwargs): """ @@ -2039,7 +2043,11 @@ def critical(msg, *args, **kwargs): basicConfig() root.critical(msg, *args, **kwargs) -fatal = critical +def fatal(msg, *args, **kwargs): + """ + Don't use this function, use critical() instead. + """ + critical(msg, *args, **kwargs) def error(msg, *args, **kwargs): """ |