now passing all pre-commit checks

This commit is contained in:
alexzvk 2022-11-29 17:21:16 -05:00
parent 1775bf0e1a
commit b0e361daf7

View File

@ -347,7 +347,8 @@ def handle_licenses():
special_license_files.get(titles_dict[selected_title], "LICENSE"), "w" special_license_files.get(titles_dict[selected_title], "LICENSE"), "w"
) as f: ) as f:
# +2 to get rid of the --- and and an extra new line # +2 to get rid of the --- and and an extra new line
f.writelines(contents[contents.index("---\n", 1) + 2:]) i = contents.index("---\n", 1) + 2
f.writelines(contents[i:])
shutil.rmtree("licenses") shutil.rmtree("licenses")