mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-40836: Add docstring to logging.fatal() and logging.Logger.fatal() (GH-20563)
Automerge-Triggered-By: @vsajip
This commit is contained in:
parent
5fc4f8ae68
commit
25f38d7044
1 changed files with 10 additions and 2 deletions
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue