Skip to content

Commit 633045a

Browse files
committed
fix formatting
1 parent 66e3cfd commit 633045a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

adafruit_logging.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ def format(self, record: LogRecord) -> str:
200200
if "{asctime}" in self.fmt or "%(asctime)s" in self.fmt:
201201
now = time.localtime()
202202
# pylint: disable=line-too-long
203-
vals[
204-
"asctime"
205-
] = f"{now.tm_year}-{now.tm_mon:02d}-{now.tm_mday:02d} {now.tm_hour:02d}:{now.tm_min:02d}:{now.tm_sec:02d}"
203+
vals["asctime"] = (
204+
f"{now.tm_year}-{now.tm_mon:02d}-{now.tm_mday:02d} {now.tm_hour:02d}:{now.tm_min:02d}:{now.tm_sec:02d}"
205+
)
206206

207207
if self.defaults:
208208
for key, val in self.defaults.items():
@@ -433,6 +433,7 @@ def emit(self, record: LogRecord) -> None:
433433
self.doRollover()
434434
super().emit(record)
435435

436+
436437
class NullHandler(Handler):
437438
"""Provide an empty log handler.
438439

0 commit comments

Comments
 (0)