-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
LogFile: rename .buffer (to fix newer flask/click) #2264
Conversation
Without this change, recent versions of |
I'm concerned it could introduce a regression on sdl2 apps. Or was it backward compatible for a long while? |
I'm not that familiar with those. Why would it introduce a regression?
Was what backward compatible? I'm missing some context here 😅 The problem is caused by the fact that >>> sys.stdout.buffer
<_io.BufferedWriter name='<stdout>'> According to https://docs.python.org/3/library/sys.html#sys.stderr:
This has been the case since python 3.0. |
It's just that I'm wondering why we see this only now? So I assumed it was a change of behaviour, like new API or something. |
I investigated a bit. As far as I can tell,
So I'm not expecting a regression. Not having a |
Thanks for the investigation. Let's merge and we can simply sue you if it breaks something 😄 |
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.
Thanks
Using (custom recipes for) the latest click (7.1.2) and flask (1.1.2) I got an
AttributeError: 'str' object has no attribute 'write'
because it tries usingstdout.buffer
.