Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
FoamyGuy committed Jan 2, 2025
1 parent 58e624b commit cfe50bb
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions adabot/circuitpython_bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,7 @@ def check_lib_links_md(bundle_path):
lib_count = len(submodules_list)
# used to generate commit message by comparing new libs to current list
try:
with open(
os.path.join(bundle_path, listfile_name), "r"
) as lib_list:
with open(os.path.join(bundle_path, listfile_name), "r") as lib_list:
read_lines = lib_list.read().splitlines()
except OSError:
read_lines = []
Expand Down Expand Up @@ -204,9 +202,7 @@ def check_lib_links_md(bundle_path):
"## Drivers:\n",
]

with open(
os.path.join(bundle_path, listfile_name), "w"
) as md_file:
with open(os.path.join(bundle_path, listfile_name), "w") as md_file:
md_file.write("\n".join(lib_list_header))
for line in sorted(write_drivers):
md_file.write(line + "\n")
Expand Down

0 comments on commit cfe50bb

Please sign in to comment.