Skip to content

Commit

Permalink
Changed the comments to the way the linter wants them
Browse files Browse the repository at this point in the history
  • Loading branch information
eblis committed Apr 27, 2020
1 parent b295d18 commit 726c4b1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions coloredlogs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,12 @@ def install(level=None, **kw):
if use_colors or use_colors is None:
use_colors = terminal_supports_colors(stream)
# Create a stream handler.
preserved_filters = handler.filters # preserve any filters the current handler might have
# preserve any filters the current handler might have
preserved_filters = handler.filters
handler = logging.StreamHandler(stream) if stream else StandardErrorHandler()
handler.setLevel(level)
handler.filters = preserved_filters # and add them back to the new handler
# and add them back to the new handler
handler.filters = preserved_filters
# Prepare the arguments to the formatter, allowing the caller to
# customize the values of `fmt', `datefmt' and `style' as desired.
formatter_options = dict(fmt=kw.get('fmt'), datefmt=kw.get('datefmt'))
Expand Down

0 comments on commit 726c4b1

Please sign in to comment.