Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fixes for modern flake8. #484

Merged
merged 1 commit into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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