Skip to content

Don't create .bak files - #27

Open
kousu wants to merge 1 commit into
neuropoly:masterfrom
kousu:patch-3
Open

kousu wants to merge 1 commit into
neuropoly:masterfrom
kousu:patch-3

Conversation

@kousu

@kousu kousu commented Apr 7, 2021

Copy link
Copy Markdown

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

kousu commented Apr 7, 2021

Copy link
Copy Markdown
Author

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

Comment thread changelog/changelog.py

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

Copy link
Copy Markdown
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

Drulex commented May 11, 2021

Copy link
Copy Markdown
Contributor

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