mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-13 09:32:26 +03:00
now passing all pre-commit checks
This commit is contained in:
parent
1775bf0e1a
commit
b0e361daf7
|
@ -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")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user