[issue5421] Irritating error message by socket's sendto method
Luk Knapen
report at bugs.python.org
Fri Mar 6 01:01:51 CET 2009
Luk Knapen <luk.knapen at telenet.be> added the comment:
File $python/lib/python3.0/logging/handlers.py
Line 782 : a bytes object is required instead of a string.
As a consequence, encoding shall be specified : but which one ?
Is :
self.socket.sendto(msg, self.address)
Should look like :
self.socket.sendto(bytes(msg,'ascii'), self.address)
----------
nosy: +lukknapen
versions: +Python 3.1 -Python 2.4, Python 2.5, Python 2.6, Python 3.0
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5421>
_______________________________________
More information about the Python-bugs-list
mailing list