Skip to content

Commit 9f75cb1

Browse files
committed
Futurize stage 1 mbed-os-tools
1 parent c57087e commit 9f75cb1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/mbed_os_tools/test/mbed_report_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def export_to_file(file_name, payload):
2424
with open(file_name, 'w') as f:
2525
f.write(payload)
2626
except IOError as e:
27-
print("Exporting report to file failed: ", str(e))
27+
print("Exporting report to file failed: %s" % str(e))
2828
result = False
2929
return result
3030

src/mbed_os_tools/test/mbed_yotta_module_parse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def init(self):
9797
with open(path, 'r') as data_file:
9898
self.__yotta_module = json.load(data_file)
9999
except IOError as e:
100-
print("YottaModule: error - ", str(e))
100+
print("YottaModule: error - %s" % str(e))
101101
return bool(self.__yotta_module) # bool({}) == False
102102

103103
def set_yotta_module(self, yotta_module):

src/mbed_os_tools/test/tests_spec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def load(self, test_spec_filename):
275275
with open(test_spec_filename, "r") as f:
276276
self.parse(json.load(f))
277277
except Exception as e:
278-
print("TestSpec::load('%s')" % test_spec_filename, str(e))
278+
print("TestSpec::load('%s') %s" % (test_spec_filename, str(e)))
279279
return False
280280

281281
self.test_spec_filename = test_spec_filename

0 commit comments

Comments
 (0)