Message133160
The _factory object didn't open the file, so why should it close it?
It's also worth noting that things one would naturally consider using as factories (like email.message_from_file) don't close the fd when they're done. I will grant that you could easily create a wrapper factory that does close the descriptor in this case, but that's not the obvious thing to do. |
|
| Date |
User |
Action |
Args |
| 2011-04-06 19:59:45 | moyix | set | recipients:
+ moyix, r.david.murray, gruszczy |
| 2011-04-06 19:59:45 | moyix | set | messageid: <[email protected]> |
| 2011-04-06 19:59:44 | moyix | link | issue11767 messages |
| 2011-04-06 19:59:44 | moyix | create | |
|