mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-15 17:34:52 +03:00
Rename variable in merge function
This commit is contained in:
parent
9957289457
commit
44f9e1ab08
|
@ -15,12 +15,12 @@ DOTENV_FILE = BASE_DIR / ".env"
|
|||
|
||||
def merge(
|
||||
output_file: Path,
|
||||
merged_files: Sequence[Path],
|
||||
files_to_merge: Sequence[Path],
|
||||
append_linesep: bool = True,
|
||||
) -> None:
|
||||
merged_content = ""
|
||||
for merged_file_path in merged_files:
|
||||
merged_content += merged_file_path.read_text()
|
||||
for merge_file in files_to_merge:
|
||||
merged_content += merge_file.read_text()
|
||||
if append_linesep:
|
||||
merged_content += os.linesep
|
||||
output_file.write_text(merged_content)
|
||||
|
|
Loading…
Reference in New Issue
Block a user