Skip to content

Commit e9959c7

Browse files
authored
bpo-42011: Update documentation of logging.Filter.filter() (GH-22692)
1 parent c9f696c commit e9959c7

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
@@ -763,8 +763,8 @@ def filter(self, record):
763763
"""
764764
Determine if the specified record is to be logged.
765765
766-
Is the specified record to be logged? Returns 0 for no, nonzero for
767-
yes. If deemed appropriate, the record may be modified in-place.
766+
Returns True if the record should be logged, or False otherwise.
767+
If deemed appropriate, the record may be modified in-place.
768768
"""
769769
if self.nlen == 0:
770770
return True

0 commit comments

Comments
 (0)