Skip to content

Commit 726c4b1

Browse files
committed
Changed the comments to the way the linter wants them
1 parent b295d18 commit 726c4b1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

coloredlogs/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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'))

0 commit comments

Comments
 (0)