From c82bd45eba07f49e40c75bd722fbccf202519cee Mon Sep 17 00:00:00 2001 From: Matt Condino Date: Tue, 26 Jul 2022 13:56:32 -0700 Subject: [PATCH] fix typos --- ament_clang_tidy/ament_clang_tidy/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ament_clang_tidy/ament_clang_tidy/main.py b/ament_clang_tidy/ament_clang_tidy/main.py index eb166458..1fbddbbb 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()