diff --git a/ament_clang_tidy/ament_clang_tidy/main.py b/ament_clang_tidy/ament_clang_tidy/main.py index 0158d6c2..5faa8142 100755 --- a/ament_clang_tidy/ament_clang_tidy/main.py +++ b/ament_clang_tidy/ament_clang_tidy/main.py @@ -175,7 +175,7 @@ def start_subprocess(full_cmd): file=sys.stderr) # Attempt to recover output, if any was found (eg - if # WarningsAsErrors was specified in the config file). - output = e.output.decode("utf-8") + output = e.output.decode('utf-8') return output files = [] @@ -206,7 +206,8 @@ def start_subprocess(full_cmd): for compilation_db in compilation_dbs: package_dir = os.path.dirname(compilation_db) package_name = os.path.basename(package_dir) - print(f"found compilation database for package '{package_name}' at '{compilation_db}'") (source_files, output) = invoke_clang_tidy(compilation_db) + print(f"found compilation database for package '{package_name}' at '{compilation_db}'") + (source_files, output) = invoke_clang_tidy(compilation_db) files += source_files outputs.append(output) pool.close()