File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 23
23
from plistlib import readPlistFromString as loads
24
24
from xml .parsers .expat import ExpatError
25
25
26
- from .lstools_base import MbedDetectLsToolsBase
26
+ from .lstools_base import MbedLsToolsBase
27
27
28
28
import logging
29
29
@@ -108,12 +108,12 @@ def _dfs_usb_info(obj, parents):
108
108
return output
109
109
110
110
111
- class MbedLsToolsDarwin (MbedDetectLsToolsBase ):
111
+ class MbedLsToolsDarwin (MbedLsToolsBase ):
112
112
""" mbed-enabled platform detection on Mac OS X
113
113
"""
114
114
115
115
def __init__ (self , ** kwargs ):
116
- MbedDetectLsToolsBase .__init__ (self , ** kwargs )
116
+ MbedLsToolsBase .__init__ (self , ** kwargs )
117
117
self .mac_version = float ("." .join (platform .mac_ver ()[0 ].split ("." )[:2 ]))
118
118
119
119
def find_candidates (self ):
Original file line number Diff line number Diff line change 16
16
import re
17
17
import os
18
18
19
- from .lstools_base import MbedDetectLsToolsBase
19
+ from .lstools_base import MbedLsToolsBase
20
20
21
21
import logging
22
22
@@ -35,14 +35,14 @@ def _readlink(link):
35
35
return content
36
36
37
37
38
- class MbedLsToolsLinuxGeneric (MbedDetectLsToolsBase ):
38
+ class MbedLsToolsLinuxGeneric (MbedLsToolsBase ):
39
39
""" mbed-enabled platform for Linux with udev
40
40
"""
41
41
42
42
def __init__ (self , ** kwargs ):
43
43
"""! ctor
44
44
"""
45
- MbedDetectLsToolsBase .__init__ (self , ** kwargs )
45
+ MbedLsToolsBase .__init__ (self , ** kwargs )
46
46
self .nlp = re .compile (r"(pci|usb)-[0-9a-zA-Z:_-]*_(?P<usbid>[0-9a-zA-Z]*)-.*$" )
47
47
self .mmp = re .compile (r"(?P<dev>(/[^/ ]*)+) on (?P<dir>(/[^/ ]*)+) " )
48
48
self .udp = re .compile (r"^[0-9]+-[0-9]+[^:\s]*$" )
Original file line number Diff line number Diff line change 18
18
from collections import defaultdict
19
19
from copy import copy
20
20
21
- from .lstools_base import MbedDetectLsToolsBase
21
+ from .lstools_base import MbedLsToolsBase
22
22
23
23
import logging
24
24
@@ -245,12 +245,12 @@ class CompatibleIDsNotFoundException(Exception):
245
245
pass
246
246
247
247
248
- class MbedLsToolsWin7 (MbedDetectLsToolsBase ):
248
+ class MbedLsToolsWin7 (MbedLsToolsBase ):
249
249
""" mbed-enabled platform detection for Windows
250
250
"""
251
251
252
252
def __init__ (self , ** kwargs ):
253
- MbedDetectLsToolsBase .__init__ (self , ** kwargs )
253
+ MbedLsToolsBase .__init__ (self , ** kwargs )
254
254
self .os_supported .append ("Windows7" )
255
255
256
256
def find_candidates (self ):
You can’t perform that action at this time.
0 commit comments