[Python-checkins] bpo-42011: Update documentation of logging.Filter.filter() (GH-22692)

Necdet Can Atesman webhook-mailer at python.org
Fri Oct 16 10:14:26 EDT 2020


https://github.com/python/cpython/commit/e9959c71185d0850c84e3aba0301fbc238f194a9
commit: e9959c71185d0850c84e3aba0301fbc238f194a9
branch: master
author: Necdet Can Atesman <can at atesman.at>
committer: GitHub <noreply at github.com>
date: 2020-10-16T15:14:07+01:00
summary:

bpo-42011: Update documentation of logging.Filter.filter() (GH-22692)

files:
M Lib/logging/__init__.py

diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index 787cb4eefa106..265e286101e91 100644
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -763,8 +763,8 @@ def filter(self, record):
         """
         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



More information about the Python-checkins mailing list