Skip to content

Commit 54426ec

Browse files
clalancettewuisky
authored andcommitted
Fix a flake8 warning in ament_uncrustify. (#471)
No need for parentheses after a 'with' statement. Signed-off-by: Chris Lalancette <[email protected]> Signed-off-by: WU MENGHUNG <[email protected]>
1 parent 0275c61 commit 54426ec

File tree

1 file changed

+1
-1
lines changed
  • ament_uncrustify/ament_uncrustify

1 file changed

+1
-1
lines changed

ament_uncrustify/ament_uncrustify/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def main(argv=sys.argv[1:]):
150150
report.append((filename, diff_lines))
151151
if args.reformat:
152152
# overwrite original with reformatted file
153-
with(open(filename, 'wb')) as original_file:
153+
with open(filename, 'wb') as original_file:
154154
with open(modified_filename, 'rb') as modified_file:
155155
original_file.write(modified_file.read())
156156
finally:

0 commit comments

Comments
 (0)