[issue27988] email iter_attachments can mutate the payload

2016-09-07 Thread R. David Murray
R. David Murray added the comment: I forgot the # on the issue number in the commit. The hashes are: 3.5 3bf2f6818719 3.6 69da5242aae3 -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue27988] email iter_attachments can mutate the payload

2016-09-06 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: LGTM +1 -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue27988] email iter_attachments can mutate the payload

2016-09-06 Thread R. David Murray
Changes by R. David Murray : -- components: +email nosy: +barry ___ Python tracker ___

[issue27988] email iter_attachments can mutate the payload

2016-09-06 Thread R. David Murray
New submission from R. David Murray: In the right (wrong) circumstances the iter_attachments function may mutate the payload list. The fix is simple (make a copy before operating on it). Attached is a patch with test. -- files: iter_attachments_mutation.patch keywords: patch