Skip to content

Commit 555981a

Browse files
committed
fix unsupported syntx
1 parent 8f53ae1 commit 555981a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

adafruit_logging.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,10 @@ def format(self, record: LogRecord) -> str:
194194
}
195195
if "{asctime}" in self.fmt:
196196
now = time.localtime()
197-
vals["asctime"] = (
198-
f"{now.tm_year}-{now.tm_mon:02d}-{now.tm_mday:02d} "
199-
f"{now.tm_hour:02d}:{now.tm_min:02d}:{now.tm_sec:02d}"
200-
)
197+
# pylint: disable=line-too-long
198+
vals[
199+
"asctime"
200+
] = f"{now.tm_year}-{now.tm_mon:02d}-{now.tm_mday:02d} {now.tm_hour:02d}:{now.tm_min:02d}:{now.tm_sec:02d}"
201201

202202
if self.defaults:
203203
for key, val in self.defaults.items():

0 commit comments

Comments
 (0)