From 7bd00f40db0d98a6751e301dd9bd5aef4dfafa58 Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Thu, 25 Jan 2024 20:21:18 +0000 Subject: [PATCH] Fix a flake8 warning in ament_uncrustify. No need for parentheses after a 'with' statement. Signed-off-by: Chris Lalancette --- ament_uncrustify/ament_uncrustify/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ament_uncrustify/ament_uncrustify/main.py b/ament_uncrustify/ament_uncrustify/main.py index a8afd67f..2bf71292 100755 --- a/ament_uncrustify/ament_uncrustify/main.py +++ b/ament_uncrustify/ament_uncrustify/main.py @@ -150,7 +150,7 @@ def main(argv=sys.argv[1:]): report.append((filename, diff_lines)) if args.reformat: # overwrite original with reformatted file - with(open(filename, 'wb')) as original_file: + with open(filename, 'wb') as original_file: with open(modified_filename, 'rb') as modified_file: original_file.write(modified_file.read()) finally: