Martin Panter added the comment:

[UTF-8 error workaround]

What kind of object is “stdout”? Plain Python socket objects don’t have a 
write() method.

Perhaps “stdout” is meant to implement the BufferedIOBase.write() interface, 
which guarantees everything is written, even if it takes multiple raw calls. 
Wrapping your output stream in BufferedWriter might be a solution.

----------
nosy: +vadmium

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24291>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to