Skip to content

Reduce I/O#1877

Merged
jensens merged 2 commits intocookiecutter:mainfrom
kurtmckee:reduce-io
Jun 30, 2023
Merged

Reduce I/O#1877
jensens merged 2 commits intocookiecutter:mainfrom
kurtmckee:reduce-io

Conversation

@kurtmckee
Copy link
Copy Markdown
Member

This PR introduces the following changes:

  • Eliminate an else clause that follows a check for binary file output.

    This reduces code indentation.

  • Only detect the original file's newlines if _new_lines isn't configured.

    This reduces file I/O.

  • Update and standardize debug logging that announces what newline will be used.

@kurtmckee kurtmckee requested review from ericof, jensens and pydanny June 29, 2023 13:37
@kurtmckee kurtmckee self-assigned this Jun 29, 2023
@jensens jensens merged commit 2125335 into cookiecutter:main Jun 30, 2023
@kurtmckee kurtmckee deleted the reduce-io branch June 30, 2023 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants