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
TypeError: must be str, not bytes in Python 3.4 #242
Comments
This may be a bug, I'm not sure. The code says that if the output handler is a file object, we're going to feed it raw bytes, instead of attempting to decode it to unicode first. I'm not sure I can think of the reasoning why this might be. Unfortunately, for your case,
I'll leave this issue open and see if I can remember if there is a valid reason for the current behavior |
Thanks a lot for the detailed answer, and the workaround ! |
After some reviewing, I've determined that the behavior is desired. Python 3 changed so that
|
Perfect, thanks ! |
I also encountered the same problem, thank you to share |
Hello,
There is how to reproduce the issue:
However it works OK with Python 2.7.
Any idea on what is happening ?
The text was updated successfully, but these errors were encountered: