@@ -833,17 +833,17 @@ def filter(self, record):
833833 Determine if a record is loggable by consulting all the filters.
834834
835835 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.
837837 If a filter attached to a handler returns a log record instance,
838838 then that instance is used in place of the original log record in
839839 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
841841 is used in any further processing of the event by that handler.
842842
843- If none of the filters return falsy values, this method returns
843+ If none of the filters return false values, this method returns
844844 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.
847847
848848 .. versionchanged:: 3.2
849849
@@ -1017,7 +1017,7 @@ def handle(self, record):
10171017 the I/O thread lock.
10181018
10191019 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.
10211021 """
10221022 rv = self .filter (record )
10231023 if isinstance (rv , LogRecord ):
0 commit comments