Skip to content

Commit 944901c

Browse files
committed
Fixing style changes
1 parent ca7c6c6 commit 944901c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

mbed_lstools/lstools_base.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def list_mbeds_ext(self):
110110
def list_mbeds(
111111
self, fs_interaction=FSInteraction.BeforeFilter,
112112
filter_function=None, unique_names=False,
113-
read_details_txt=None):
113+
read_details_txt=False):
114114
""" List details of connected devices
115115
@return Returns list of structures with detailed info about each mbed
116116
@param fs_interaction A member of the FSInteraction class that picks the
@@ -151,7 +151,6 @@ def list_mbeds(
151151
platform_count[name] += 1
152152
device['platform_name_unique'] = (
153153
"%s[%d]" % (name, platform_count[name]))
154-
155154
try:
156155
device.update(self.retarget_data[device['target_id']])
157156
logger.debug("retargeting %s with %r",
@@ -188,7 +187,6 @@ def _fs_before_id_check(self, device, filter_function, read_details_txt):
188187
return None
189188

190189
def _fs_after_id_check(self, device, filter_function, read_details_txt):
191-
192190
"""Filter device before touching the file system of the device.
193191
Said another way: Touch the file system after filtering
194192
"""
@@ -249,11 +247,9 @@ def _update_device_details_daplink(self, device, read_details_txt):
249247
else:
250248
device['platform_name'] = None
251249

252-
def _update_device_details_jlink(self, device, read_details_txt):
250+
def _update_device_details_jlink(self, device, _):
253251
""" Updates the jlink-specific device information based on files from its 'mount_point'
254252
@param device Dictionary containing device information
255-
@param read_details_txt A boolean controlling the presense of the
256-
output dict attributes read from other files present on the 'mount_point'
257253
"""
258254
files = os.listdir(device['mount_point'])
259255
lower_case_map = {f.lower(): f for f in files}

0 commit comments

Comments
 (0)