Skip to content

Commit dff9161

Browse files
bpo-42011: Update documentation of logging.Filter.filter() (GH-22692) (GH-22725)
(cherry picked from commit e9959c7)
1 parent b30934e commit dff9161

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
@@ -748,8 +748,8 @@ def filter(self, record):
748748
"""
749749
Determine if the specified record is to be logged.
750750
751-
Is the specified record to be logged? Returns 0 for no, nonzero for
752-
yes. If deemed appropriate, the record may be modified in-place.
751+
Returns True if the record should be logged, or False otherwise.
752+
If deemed appropriate, the record may be modified in-place.
753753
"""
754754
if self.nlen == 0:
755755
return True

0 commit comments

Comments
 (0)