Jack Diederich <[EMAIL PROTECTED]> added the comment: Augmented version of Daniel's patch.
This makes an internal function that does the same work. It uses txt.find() instead of split() or partition() because for pathologically long strings find() is noticeably faster. It also does the strip() before the lower() which helps with evilly long strings. I didn't remove the module global "paramre" because an external module might be using it. I did update its comment. Do bugfixes get applied to 2.6 or 3.0? I'm a bit out of practice. ---------- nosy: +jackdied Added file: http://bugs.python.org/file11022/email.message.diff _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2676> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com