Skip to content

Commit

Permalink
Reformat with black
Browse files Browse the repository at this point in the history
  • Loading branch information
borntyping committed Nov 8, 2021
1 parent 7a90afa commit 250a692
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions colorlog/formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ def __init__(
super().__init__(fmt, datefmt, style)

self.log_colors = log_colors if log_colors is not None else default_log_colors
self.secondary_log_colors = secondary_log_colors if secondary_log_colors is not None else {}
self.secondary_log_colors = (
secondary_log_colors if secondary_log_colors is not None else {}
)
self.reset = reset
self.stream = stream
self.no_color = no_color
Expand Down Expand Up @@ -195,7 +197,9 @@ def __init__(self, fmt: typing.Mapping[str, str], **kwargs: typing.Any) -> None:
}
)
"""
self.formatters = {level: ColoredFormatter(fmt=f, **kwargs) for level, f in fmt.items()}
self.formatters = {
level: ColoredFormatter(fmt=f, **kwargs) for level, f in fmt.items()
}

def format(self, record: logging.LogRecord) -> str:
return self.formatters[record.levelname].format(record)
Expand Down

0 comments on commit 250a692

Please sign in to comment.