Skip to content

Commit

Permalink
nrf52_upload: Fix imports on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-nitrokey committed Aug 8, 2024
1 parent c166db7 commit 2f61618
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,12 @@

import sys

from ..enumerated_device import EnumeratedDevice
from ..lister_backend import AbstractLister

if "linux" in sys.platform or sys.platform == "darwin":
import serial.tools.list_ports

from ..enumerated_device import EnumeratedDevice


def create_id_string(sno: str, PID: str, VID: str) -> str:
return "{}-{}-{}".format(sno, PID, VID)
Expand Down

0 comments on commit 2f61618

Please sign in to comment.