Skip to content

Commit

Permalink
Small fixes for modern flake8. (#484)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Lalancette <[email protected]>
  • Loading branch information
clalancette authored Mar 25, 2024
1 parent 1dc0e38 commit 060dcfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ament_copyright/ament_copyright/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def add_missing_header(file_descriptors, name, license_, verbose):

def add_copyright_year(file_descriptors, new_years, verbose):
if verbose:
print(f'Adding {",".join(map(str,new_years))} to existing copyright notices:')
print(f'Adding {",".join(map(str, new_years))} to existing copyright notices:')
print()

for path in sorted(file_descriptors.keys()):
Expand Down
2 changes: 1 addition & 1 deletion ament_copyright/ament_copyright/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def remove_formatting(text):

# Flat list of sections split on all separators provided
def split_template(sections, separators):
if type(sections) != list:
if not isinstance(sections, list):
return split_template([sections], separators)
elif len(separators) > 1:
return sum([split_template([section], separators[0:1]) for section
Expand Down

0 comments on commit 060dcfd

Please sign in to comment.