[issue11701] email.parser.BytesParser().parse() closes file argument

2011-09-17 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Right, and that is considered to be a non-issue due to that close() is allowed multiple times without causing harm. -- status: open - closed ___ Python tracker rep...@bugs.python.org

[issue11701] email.parser.BytesParser().parse() closes file argument

2011-04-16 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11701 ___ ___

[issue11701] email.parser.BytesParser().parse() closes file argument

2011-04-13 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: This patch fixes the problem. It was introduced in e727cf35. David Murray, i've looked into test_email.py to add tests for this, and i found TestIdempotent(). What i would do is try to split that thing up so that it covers str()

[issue11701] email.parser.BytesParser().parse() closes file argument

2011-04-13 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: For easy reference, here's a hash for that changeset that roundup will turn into a link: e727cf354720. TestIdempotent is already run for both the bytes and str cases (they are widely separated in the test file...I'll fix that at some

[issue11701] email.parser.BytesParser().parse() closes file argument

2011-04-13 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Wed, Apr 13, 2011 at 01:07:28PM +, R. David Murray wrote: TestIdempotent is already run for both the bytes and str cases (*^.^*) Ouch. Searching is only for the experienced. --

[issue11701] email.parser.BytesParser().parse() closes file argument

2011-04-13 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: So i'll changed the existing message_from_(binary_)?file() tests to also test the file closing. -- Added file: http://bugs.python.org/file21649/11701.2.diff ___ Python tracker

[issue11701] email.parser.BytesParser().parse() closes file argument

2011-04-13 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: -brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11701 ___ ___ Python-bugs-list