[issue7627] mailbox.MH.remove() lock handling is broken

2010-02-22 Thread A.M. Kuchling
A.M. Kuchling added the comment: Thanks for your bug report! Unfortunately, the fix isn't quite right, because on Windows you can't delete files that are open. I think an even simpler fix is just to remove that locking; if self._locked is true, this process presumably has exclusive access t

[issue7627] mailbox.MH.remove() lock handling is broken

2010-01-06 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- assignee: -> akuchling nosy: +akuchling ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue7627] mailbox.MH.remove() lock handling is broken

2010-01-03 Thread Rob Austein
New submission from Rob Austein : .remove() method of MH class in the mailbox module of the standard library references a file object after closing it. This throws a ValueError exception (I/O operation on closed file). The f.close() call just before the os.remove() call in the innermost try: