File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -433,10 +433,12 @@ def install(level=None, **kw):
433433 if use_colors or use_colors is None :
434434 use_colors = terminal_supports_colors (stream )
435435 # Create a stream handler.
436- preserved_filters = handler .filters # preserve any filters the current handler might have
436+ # preserve any filters the current handler might have
437+ preserved_filters = handler .filters
437438 handler = logging .StreamHandler (stream ) if stream else StandardErrorHandler ()
438439 handler .setLevel (level )
439- handler .filters = preserved_filters # and add them back to the new handler
440+ # and add them back to the new handler
441+ handler .filters = preserved_filters
440442 # Prepare the arguments to the formatter, allowing the caller to
441443 # customize the values of `fmt', `datefmt' and `style' as desired.
442444 formatter_options = dict (fmt = kw .get ('fmt' ), datefmt = kw .get ('datefmt' ))
You can’t perform that action at this time.
0 commit comments