[issue25411] SMTPHandler in the logging module fails with unicode strings

2015-10-15 Thread simon04
New submission from simon04: This relates to the unresolved issue9208 (Python 2). SMTPHandler fails when receiving unicode strings. Example (from msg109621): import logging,logging.handlers smtpHandler = logging.handlers.SMTPHandler( mailhost=("smtp.free.fr",25), fromaddr=&qu

[issue25411] SMTPHandler in the logging module fails with unicode strings

2015-10-15 Thread simon04
Changes by simon04 <simon.leg...@gmail.com>: -- nosy: +r.david.murray ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25411> ___ _

[issue9208] SMTPHandler in the logging module does not handle unicode strings

2015-10-13 Thread simon04
simon04 added the comment: I don't see why/how this should be fixed in Python 3. Using the example from msg109621 and Python 3.5.0, I get: --- Logging error --- Traceback (most recent call last): File "/usr/lib/python3.5/logging/handlers.py", line 985, in emit smtp.sendmail(sel