Skip to content

Commit 11e20b1

Browse files
committed
Fix UP032 (Use f-string instead of format call)
ruff check --select=UP032 --fix
1 parent 3886c70 commit 11e20b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subprojects/robotpy-wpiutil/examples/printlog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
# handle systemTime specially
6161
if entry.name == "systemTime" and entry.type == "int64":
6262
dt = datetime.fromtimestamp(record.getInteger() / 1000000)
63-
print(" {:%Y-%m-%d %H:%M:%S.%f}".format(dt))
63+
print(f" {dt:%Y-%m-%d %H:%M:%S.%f}")
6464
continue
6565

6666
if entry.type == "double":

0 commit comments

Comments
 (0)