[issue14740] get_payload(n, True) returns None

2012-05-07 Thread Bob Glickstein
New submission from Bob Glickstein : Passing both a value for i and decode=True to email.message.Message.get_payload(), when self is a multipart, returns None when it should return a string. The reason is that an is_multipart() test is done on self when it should instead be done on the

[issue14740] get_payload(n, True) returns None

2012-05-07 Thread Bob Glickstein
Bob Glickstein added the comment: Incidentally, a workaround is: msg.get_payload(n).get_payload(decode=True) -- ___ Python tracker <http://bugs.python.org/issue14