"""Generate the ABI dumps for the specified git revision.
The shared libraries must have been built and the module paths
present in version.modules."""
- for mbed_module, module_path in version.modules.items():
+ for mbed_module, module_path in list(version.modules.items()):
output_path = os.path.join(
self.report_dir, "{}-{}-{}.dump".format(
mbed_module, version.revision, version.version
if not (self.keep_all_reports or self.brief):
os.remove(output_path)
for version in [self.old_version, self.new_version]:
- for mbed_module, mbed_module_dump in version.abi_dumps.items():
+ for mbed_module, mbed_module_dump in list(version.abi_dumps.items()):
os.remove(mbed_module_dump)
if self.can_remove_report_dir:
os.rmdir(self.report_dir)
)
abi_args = parser.parse_args()
if os.path.isfile(abi_args.report_dir):
- print("Error: {} is not a directory".format(abi_args.report_dir))
+ print(("Error: {} is not a directory".format(abi_args.report_dir)))
parser.exit()
old_version = SimpleNamespace(
version="old",