-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Barry Warsaw wrote: > On Nov 6, 2007, at 9:07 PM, [EMAIL PROTECTED] wrote: > >> ------------------------------------------------------------ >> revno: 6573 >> committer: Mark Sapiro <[EMAIL PROTECTED]> <snip> >> # If the message isn't a multipart, then we'll strip it >> out as an >> # attachment that would have to be separately downloaded. >> Pipermail >> # will transform the url into a hyperlink. >> - elif part and not part.is_multipart(): >> + elif part._payload and not part.is_multipart(): > > I'm not sure it's a good idea to use this non-public attribute. > 'part.get_payload()' would probably be a better test.
I think Barry is right, but I did it as I did because of a concern expressed by Tokio at <http://mail.python.org/pipermail/mailman-users/2006-December/054961.html>. I'll gladly change it to get_payload() - -- Mark Sapiro <[EMAIL PROTECTED]> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) iD8DBQFHQIStVVuXXpU7hpMRAlVhAJ9M5OX2iT3Blt5QzQ2UPBuRY+1XUACg4rHg MZywGERykk1M7brgkGDtUcA= =bXYJ -----END PGP SIGNATURE----- _______________________________________________ Mailman-Developers mailing list [email protected] http://mail.python.org/mailman/listinfo/mailman-developers Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-developers%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp
