-
Notifications
You must be signed in to change notification settings - Fork 475
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
Issue 229: Add explicit encoding, license and unix line separators. #231
Conversation
Thanks for this, but it doesn't build either:
This is the same example in bin/num2words:27 that was removed from README.rst. Removing this line as well does the trick. But wouldn't it be nicer to just open those specific files as utf-8? As they are opened by open(), the "coding: utf-8" line doesn't do anything for this. Replacing open() with io.open() might do it? This seems to be available for python2.7 as well and to be the same as open() in python3+ |
@null-git I agree! I will also use the I have updated my branch, could you give it a try again? |
This builds fine now for with python 3.6 but you've used encoding='utf-8' for open() instead of io.open(). This should fail for python 2.7. |
Sorry, I completely missed that. I think it's fine how you did it, other people won't care to much which open() this is and as python 2.7 is hopefully gone soonish anyway, both functions will be the same for most people anyway. Looks good to me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @erozqba,
Here are just a few basic questions before merge.
LGTM otherwise.
a99feaa
to
8b15fbc
Compare
Pull Request Test Coverage Report for Build 601
💛 - Coveralls |
Some maintainers for different linux distribution are having some problems with the encoding on different python versions. This change intents to make all python files define explicitly the encoding, license and unix line separators. Remove one example of the README.rst file where a possible non UTF-8 character is used.
@pierreduchemin Please review this PR again, it should be ready. Please review carefully the files on which I have changed the line end. Thanks a lot. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Carefully reviewed.
LGTM
Fixes #229
Changes proposed in this pull request:
Some maintainers for different Linux distribution are having some
problems with the encoding in different python versions. This change
intents to make all python files define explicitly the encoding, license,
and Unix line separators. Remove one example of the README.rst file
where a possible non UTF-8 character is used.
Status
How to verify this change
Make sure all tests pass and coverage remains the same.