Varun Sharma added the comment: I have made a patch which raises TypeError whenever a string type payload is attached to message using email.Message.attach() method.I have also added a unit test for the same. Need review.
---------- keywords: +patch nosy: +varun Added file: http://bugs.python.org/file34258/string_payload_to_attach.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11558> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com