[issue16477] tarfile fails to close file handles in case of exception

2012-12-14 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16477] tarfile fails to close file handles in case of exception

2012-11-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset b7bdc0b3c2fe by Andrew Svetlov in branch '3.2': Issue #16477: Close tarfile internal handlers in case of exception. http://hg.python.org/cpython/rev/b7bdc0b3c2fe New changeset 80749ddc30b6 by Andrew Svetlov in branch '3.3': Merge issue #16477: Close

[issue16477] tarfile fails to close file handles in case of exception

2012-11-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. Thanks, Serhiy -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue16477] tarfile fails to close file handles in case of exception

2012-11-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: LGTM -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue16477] tarfile fails to close file handles in case of exception

2012-11-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16477] tarfile fails to close file handles in case of exception

2012-11-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Would "with source = self.extractfile(tarinfo):" work? No. extractfile() can return an instance of custom class. But in 3.x this not used at all. Here are patches for 2.7 and 3.x. -- keywords: +patch Added file: http://bugs.python.org/file28012/

[issue16477] tarfile fails to close file handles in case of exception

2012-11-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Would "with source = self.extractfile(tarinfo):" work? -- nosy: +terry.reedy ___ Python tracker ___

[issue16477] tarfile fails to close file handles in case of exception

2012-11-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Issue16408 is similar issue for zipfile. -- keywords: +easy nosy: +lars.gustaebel, serhiy.storchaka stage: -> needs patch type: behavior -> resource usage versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4 -Python 3.5 _

[issue16477] tarfile fails to close file handles in case of exception

2012-11-15 Thread Sam Thursfield
Sam Thursfield added the comment: sorry, replace 'open' with 'bltn_open' in the above comment - no need to change it. -- ___ Python tracker ___ _

[issue16477] tarfile fails to close file handles in case of exception

2012-11-15 Thread Sam Thursfield
New submission from Sam Thursfield: Exceptions such as disk full during extraction cause tarfile to leak file handles. Besides being messy, it causes real problems if, for example, the target file is on a mount that should be unmounted before the program exits - in this case, the unmount will