[Python-checkins] (no subject)
Rémi Lapeyre
webhook-mailer at python.org
Mon Jun 15 04:03:25 EDT 2020
To: python-checkins at python.org
Subject: bpo-40836: Add docstring to logging.fatal() and
logging.Logger.fatal() (GH-20563)
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
https://github.com/python/cpython/commit/25f38d7044a3a47465edd851c4e04f337b2c=
4b9b
commit: 25f38d7044a3a47465edd851c4e04f337b2c4b9b
branch: master
author: R=C3=A9mi Lapeyre <remi.lapeyre at lenstra.fr>
committer: GitHub <noreply at github.com>
date: 2020-06-15T01:03:07-07:00
summary:
bpo-40836: Add docstring to logging.fatal() and logging.Logger.fatal() (GH-20=
563)
Automerge-Triggered-By: @vsajip
files:
M Lib/logging/__init__.py
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index 6d27301a7056e..1c446fd421650 100644
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -1480,7 +1480,11 @@ def critical(self, msg, *args, **kwargs):
if self.isEnabledFor(CRITICAL):
self._log(CRITICAL, msg, args, **kwargs)
=20
- fatal =3D critical
+ def fatal(self, msg, *args, **kwargs):
+ """
+ Don't use this method, use critical() instead.
+ """
+ self.critical(msg, *args, **kwargs)
=20
def log(self, level, msg, *args, **kwargs):
"""
@@ -2039,7 +2043,11 @@ def critical(msg, *args, **kwargs):
basicConfig()
root.critical(msg, *args, **kwargs)
=20
-fatal =3D critical
+def fatal(msg, *args, **kwargs):
+ """
+ Don't use this function, use critical() instead.
+ """
+ critical(msg, *args, **kwargs)
=20
def error(msg, *args, **kwargs):
"""
More information about the Python-checkins
mailing list