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

Use unicode on Python 2 #366

Merged
merged 2 commits into from
Nov 5, 2016

Conversation

jakirkham
Copy link
Member

Fixes #364

This uses UTF-8 in all cases. Files are opened with UTF-8 encoding and unicode literals are used throughout. Fixes some issues on Python 2 in particular where metadata from the recipe included unicode characters. This should now correctly support them. Have tested against the pyemma feedstock with both Python 2 and Python 3 locally. Works fine in both cases. Should add that this ends up already being well covered in the existing test suite thanks to the use of the touch_file function, which had to receive a unicode literal to behave correctly.

@jakirkham
Copy link
Member Author

cc @marscher

@jakirkham jakirkham merged commit 0077d61 into conda-forge:master Nov 5, 2016
@jakirkham jakirkham deleted the use_unicode_python_2 branch November 5, 2016 18:45
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.

1 participant