fix missing f in f-string

This commit is contained in:
Fischer Moseley 2023-09-11 17:06:39 -07:00
parent dbdb379c56
commit c427cee010
1 changed files with 2 additions and 2 deletions

View File

@ -329,8 +329,8 @@ Supported commands:
# sometimes macOS will enumerate non-serial devices as serial ports,
# in which case the PID/VID/serial/location/etc are all None
pid = "0x{port.vid:04X}" if port.pid is not None else "None"
vid = "0x{port.vid:04X}" if port.vid is not None else "None"
pid = f"0x{port.vid:04X}" if port.pid is not None else "None"
vid = f"0x{port.vid:04X}" if port.vid is not None else "None"
print(f" -> pid: {pid}")
print(f" -> vid: {vid}")