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

Remove reload & sys.setdefaultencoding #82

Merged
merged 1 commit into from
Oct 13, 2016

Conversation

Hwesta
Copy link
Contributor

@Hwesta Hwesta commented Oct 11, 2016

They are discouraged usage and deprecated/removed in Python3. See http://stackoverflow.com/questions/3828723/why-should-we-not-use-sys-setdefaultencodingutf-8-in-a-py-script

Versions of pyflakes newer than 1.0.0 give an error for reload() since it's removed in Python3, so this should fix travis errors.

They are discouraged usage and deprecated/removed in Python3.
@mistydemeo
Copy link
Contributor

No sign of encoding issues, I assume? Maybe this is working around a problem that hasn't been an issue for awhile.

@Hwesta
Copy link
Contributor Author

Hwesta commented Oct 11, 2016

I think this was a hack workaround for printing unicode strings in Python2, where it sometimes assumed the encoding was ASCII instead of UTF8. The correct workaround appears to have been setting PYTHONIOENCODING=UTF8, but I can't reproduce the probable error in Python2 at all.

@mistydemeo
Copy link
Contributor

If it's not reproducible I think we can judge this problem lost to the mists of time. 👍 Probably worth testing with various LANG settings though, like LANG=C.

Copy link
Contributor

@mistydemeo mistydemeo left a comment

Choose a reason for hiding this comment

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

Tested with LANG=C, seems to be working fine.

@Hwesta Hwesta merged commit 8bccaeb into openpreserve:master Oct 13, 2016
@Hwesta Hwesta deleted the remove-setdefaultencoding branch October 13, 2016 19:01
@Hwesta Hwesta modified the milestone: 1.3.5 Oct 27, 2016
@Hwesta Hwesta mentioned this pull request Dec 20, 2016
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