]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42011: Update documentation of logging.Filter.filter() (GH-22692)
authorNecdet Can Atesman <can@atesman.at>
Fri, 16 Oct 2020 14:14:07 +0000 (16:14 +0200)
committerGitHub <noreply@github.com>
Fri, 16 Oct 2020 14:14:07 +0000 (15:14 +0100)
Lib/logging/__init__.py

index 787cb4eefa10613865635f35462b8e4e8911c73f..265e286101e9137f639d47c1a2e098b4aedb6ca6 100644 (file)
@@ -763,8 +763,8 @@ class Filter(object):
         """
         Determine if the specified record is to be logged.
 
-        Is the specified record to be logged? Returns 0 for no, nonzero for
-        yes. If deemed appropriate, the record may be modified in-place.
+        Returns True if the record should be logged, or False otherwise.
+        If deemed appropriate, the record may be modified in-place.
         """
         if self.nlen == 0:
             return True