Skip to content

Commit cb2389c

Browse files
committed
Fixing imports of detect base class
1 parent 3c43330 commit cb2389c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/mbed_os_tools/detect/darwin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from plistlib import readPlistFromString as loads
2424
from xml.parsers.expat import ExpatError
2525

26-
from .lstools_base import MbedDetectLsToolsBase
26+
from .lstools_base import MbedLsToolsBase
2727

2828
import logging
2929

@@ -108,12 +108,12 @@ def _dfs_usb_info(obj, parents):
108108
return output
109109

110110

111-
class MbedLsToolsDarwin(MbedDetectLsToolsBase):
111+
class MbedLsToolsDarwin(MbedLsToolsBase):
112112
""" mbed-enabled platform detection on Mac OS X
113113
"""
114114

115115
def __init__(self, **kwargs):
116-
MbedDetectLsToolsBase.__init__(self, **kwargs)
116+
MbedLsToolsBase.__init__(self, **kwargs)
117117
self.mac_version = float(".".join(platform.mac_ver()[0].split(".")[:2]))
118118

119119
def find_candidates(self):

src/mbed_os_tools/detect/linux.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import re
1717
import os
1818

19-
from .lstools_base import MbedDetectLsToolsBase
19+
from .lstools_base import MbedLsToolsBase
2020

2121
import logging
2222

@@ -35,14 +35,14 @@ def _readlink(link):
3535
return content
3636

3737

38-
class MbedLsToolsLinuxGeneric(MbedDetectLsToolsBase):
38+
class MbedLsToolsLinuxGeneric(MbedLsToolsBase):
3939
""" mbed-enabled platform for Linux with udev
4040
"""
4141

4242
def __init__(self, **kwargs):
4343
"""! ctor
4444
"""
45-
MbedDetectLsToolsBase.__init__(self, **kwargs)
45+
MbedLsToolsBase.__init__(self, **kwargs)
4646
self.nlp = re.compile(r"(pci|usb)-[0-9a-zA-Z:_-]*_(?P<usbid>[0-9a-zA-Z]*)-.*$")
4747
self.mmp = re.compile(r"(?P<dev>(/[^/ ]*)+) on (?P<dir>(/[^/ ]*)+) ")
4848
self.udp = re.compile(r"^[0-9]+-[0-9]+[^:\s]*$")

src/mbed_os_tools/detect/windows.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from collections import defaultdict
1919
from copy import copy
2020

21-
from .lstools_base import MbedDetectLsToolsBase
21+
from .lstools_base import MbedLsToolsBase
2222

2323
import logging
2424

@@ -245,12 +245,12 @@ class CompatibleIDsNotFoundException(Exception):
245245
pass
246246

247247

248-
class MbedLsToolsWin7(MbedDetectLsToolsBase):
248+
class MbedLsToolsWin7(MbedLsToolsBase):
249249
""" mbed-enabled platform detection for Windows
250250
"""
251251

252252
def __init__(self, **kwargs):
253-
MbedDetectLsToolsBase.__init__(self, **kwargs)
253+
MbedLsToolsBase.__init__(self, **kwargs)
254254
self.os_supported.append("Windows7")
255255

256256
def find_candidates(self):

0 commit comments

Comments
 (0)