Terry J. Reedy <tjre...@udel.edu> added the comment: The error message suggests that somehow a str string has gotten mixed in with the bytes. Something like '\n' or ' '?
Steffen, if you want to help track this down: 1. What is a minimal msgdata that gives the same error; post it. 2. Add 'print(payload)' before line 304: self._fp.write(payload) and perhaps further back to see what the offending string is and where it comes from. ---------- nosy: +terry.reedy _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11782> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com