Skip to content

Commit 250a692

Browse files
committed
Reformat with black
1 parent 7a90afa commit 250a692

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

colorlog/formatter.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ def __init__(
111111
super().__init__(fmt, datefmt, style)
112112

113113
self.log_colors = log_colors if log_colors is not None else default_log_colors
114-
self.secondary_log_colors = secondary_log_colors if secondary_log_colors is not None else {}
114+
self.secondary_log_colors = (
115+
secondary_log_colors if secondary_log_colors is not None else {}
116+
)
115117
self.reset = reset
116118
self.stream = stream
117119
self.no_color = no_color
@@ -195,7 +197,9 @@ def __init__(self, fmt: typing.Mapping[str, str], **kwargs: typing.Any) -> None:
195197
}
196198
)
197199
"""
198-
self.formatters = {level: ColoredFormatter(fmt=f, **kwargs) for level, f in fmt.items()}
200+
self.formatters = {
201+
level: ColoredFormatter(fmt=f, **kwargs) for level, f in fmt.items()
202+
}
199203

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

0 commit comments

Comments
 (0)