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

setup.py: open catalogs using UTF-8 in python 3 #46

Closed
wants to merge 1 commit into from

Conversation

mgorse
Copy link
Contributor

@mgorse mgorse commented Apr 23, 2018

Otherwise they might be opened as ascii, leading to a UnicodeDecodeError.

Otherwise they might be opened as ascii, leading to a UnicodeDecodeError.
Copy link
Member

@RyuzakiKK RyuzakiKK left a comment

Choose a reason for hiding this comment

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

LGTM and thanks for this PR.

@muelli
Copy link
Member

muelli commented Apr 23, 2018

Amazing. Thanks! I wonder: Can we use the argument unconditionally? That would make the patch even simpler.

@RyuzakiKK
Copy link
Member

encoding is not available on Python 2, so I don't think that it is possible.

@muelli
Copy link
Member

muelli commented Apr 24, 2018

Ah, right. I was a bit confused. I was looking as codecs.open. That can be used in Python 2 and 3.

@muelli
Copy link
Member

muelli commented May 27, 2018

Thanks for the patch! Awesome.
I've changed it slightly and merged e8379f6.

@muelli muelli closed this May 27, 2018
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.

None yet

3 participants