This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients lars.gustaebel, serhiy.storchaka, ssam, terry.reedy
Date 2012-11-17.20:02:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <201211172201.57570.storchaka@gmail.com>
In-reply-to <1353098656.44.0.0164561293028.issue16477@psf.upfronthosting.co.za>
Content
> 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.
Files
File name Uploaded
tarfile_fd_leaks-2.7.patch serhiy.storchaka, 2012-11-17.20:02:12
tarfile_fd_leaks.patch serhiy.storchaka, 2012-11-17.20:02:12
History
Date User Action Args
2012-11-17 20:02:13serhiy.storchakasetrecipients: + serhiy.storchaka, terry.reedy, lars.gustaebel, ssam
2012-11-17 20:02:13serhiy.storchakalinkissue16477 messages
2012-11-17 20:02:13serhiy.storchakacreate