Skip to content

Commit

Permalink
Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
intoinside committed Jun 20, 2023
1 parent 7f60020 commit 82a3ca7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions KickAssemblerToDoxygen.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,8 @@ def read_file(filename):
"""Function printing python version."""
print("Processing " + filename)

content = open(filename, 'r', encoding='utf8').read()

return content
with open(filename, 'r', encoding='utf8') as file_to_open:
return file_to_open.read()

def convert_file(content):
"""Function printing python version."""
Expand Down Expand Up @@ -149,9 +148,9 @@ def write_file(filename, content):
output_filename = head + '/output/' + tail

print("Saving " + output_filename + "...")
out_file = open(output_filename, 'w', encoding='utf8')
out_file.write(content)
out_file.close()
with open(output_filename, 'w', encoding='utf8') as out_file:
out_file.write(content)
out_file.close()

def usage():
"""Function printing python version."""
Expand Down
4 changes: 2 additions & 2 deletions coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 82a3ca7

Please sign in to comment.