LogFile: rename .buffer (to fix newer flask/click)#2264
LogFile: rename .buffer (to fix newer flask/click)#2264AndreMiras merged 1 commit intokivy:developfrom
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 😄 |
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.