Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit 5359c17

Browse files
committed
Set SYSFS_PORT_SPLIT_RE
Test: Use path returned by adb devices -l (namely 1-13.3.3), and ensure it has been parsed properly
1 parent a9ea7b4 commit 5359c17

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

adb/common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@
2222

2323
import libusb1
2424
import usb1
25+
import re
2526

2627
from adb import usb_exceptions
2728

2829
DEFAULT_TIMEOUT_MS = 1000
30+
SYSFS_PORT_SPLIT_RE = re.compile("[,/:.-]")
2931

3032
_LOG = logging.getLogger('android_usb')
3133

0 commit comments

Comments
 (0)