summaryrefslogtreecommitdiffstats
path: root/Lib/logging/__init__.py
diff options
context:
space:
mode:
authorMiss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com>2020-10-16 17:20:24 (GMT)
committerGitHub <noreply@github.com>2020-10-16 17:20:24 (GMT)
commit8f7eab788aedcf1a23ef9be767e1b3502a6bbd5c (patch)
tree339a63336c06c70d96cbd3dcfbdcb24161b0bc5d /Lib/logging/__init__.py
parent967fddae2fe48f297563c358bdbdde1e2cfed4ee (diff)
downloadcpython-8f7eab788aedcf1a23ef9be767e1b3502a6bbd5c.zip
cpython-8f7eab788aedcf1a23ef9be767e1b3502a6bbd5c.tar.gz
cpython-8f7eab788aedcf1a23ef9be767e1b3502a6bbd5c.tar.bz2
bpo-42011: Update documentation of logging.Filter.filter() (GH-22692) (GH-22724)
(cherry picked from commit e9959c71185d0850c84e3aba0301fbc238f194a9)
Diffstat (limited to 'Lib/logging/__init__.py')
-rw-r--r--Lib/logging/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index f5b7e2e..79e0787a 100644
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -753,8 +753,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