]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42011: Update documentation of logging.Filter.filter() (GH-22692) (GH-22725)
authorMiss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 16 Oct 2020 17:21:49 +0000 (10:21 -0700)
committerGitHub <noreply@github.com>
Fri, 16 Oct 2020 17:21:49 +0000 (18:21 +0100)
(cherry picked from commit e9959c71185d0850c84e3aba0301fbc238f194a9)

Lib/logging/__init__.py

index 4013e56fc3de4f3ba565ce87c1b1d98b9158c694..7b169a16fbb70f7bb53287360bcf31413a0aad45 100644 (file)
@@ -748,8 +748,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