Skip to content

Commit 8f7eab7

Browse files
bpo-42011: Update documentation of logging.Filter.filter() (GH-22692) (GH-22724)
(cherry picked from commit e9959c7)
1 parent 967fdda commit 8f7eab7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/logging/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -753,8 +753,8 @@ def filter(self, record):
753753
"""
754754
Determine if the specified record is to be logged.
755755
756-
Is the specified record to be logged? Returns 0 for no, nonzero for
757-
yes. If deemed appropriate, the record may be modified in-place.
756+
Returns True if the record should be logged, or False otherwise.
757+
If deemed appropriate, the record may be modified in-place.
758758
"""
759759
if self.nlen == 0:
760760
return True

0 commit comments

Comments
 (0)