Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't create .bak files #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Don't create .bak files #27

wants to merge 1 commit into from

Conversation

kousu
Copy link
Member

@kousu kousu commented Apr 7, 2021

And simplify the write-out code with the help of itertools :)

There's no need for this. We keep our code in git and that works way better.

Love a good iterator

And simplify the write-out code with the help of itertools :)

Love a good iterator
@kousu
Copy link
Member Author

kousu commented Apr 7, 2021

to be transparent, I haven't tested this yet.


with io.open(filename, 'w') as changelog:
for line in lines:
print(line, file=changelog)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why use print() vs io.write()? It inserts extra linefeeds by default, which we don't want (probably need to use print(end="") or something.)

@Drulex
Copy link
Contributor

Drulex commented May 11, 2021

to be transparent, I haven't tested this yet.

There are extra linefeeds in the changelog generated with this code.

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