@@ -833,17 +833,17 @@ def filter(self, record):
833
833
Determine if a record is loggable by consulting all the filters.
834
834
835
835
The default is to allow the record to be logged; any filter can veto
836
- this by returning a falsy value.
836
+ this by returning a false value.
837
837
If a filter attached to a handler returns a log record instance,
838
838
then that instance is used in place of the original log record in
839
839
any further processing of the event by that handler.
840
- If a filter returns any other truthy value, the original log record
840
+ If a filter returns any other true value, the original log record
841
841
is used in any further processing of the event by that handler.
842
842
843
- If none of the filters return falsy values, this method returns
843
+ If none of the filters return false values, this method returns
844
844
a log record.
845
- If any of the filters return a falsy value, this method returns
846
- a falsy value.
845
+ If any of the filters return a false value, this method returns
846
+ a false value.
847
847
848
848
.. versionchanged:: 3.2
849
849
@@ -1017,7 +1017,7 @@ def handle(self, record):
1017
1017
the I/O thread lock.
1018
1018
1019
1019
Returns an instance of the log record that was emitted
1020
- if it passed all filters, otherwise a falsy value is returned.
1020
+ if it passed all filters, otherwise a false value is returned.
1021
1021
"""
1022
1022
rv = self .filter (record )
1023
1023
if isinstance (rv , LogRecord ):
0 commit comments