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 Elvis.Pranskevichus
Recipients Elvis.Pranskevichus
Date 2017-10-03.19:39:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507059584.22.0.213398074469.issue31681@psf.upfronthosting.co.za>
In-reply-to
Content
pkgutil.get_data() does this:

     def get_data(self, pathname):
        return open(pathname, "rb").read()

which very obviously leaks open file descriptors.  This has been fixed in 3.x by https://github.com/python/cpython/commit/1ab58dfb12dedb7, but never backported to 2.7.
History
Date User Action Args
2017-10-03 19:39:44Elvis.Pranskevichussetrecipients: + Elvis.Pranskevichus
2017-10-03 19:39:44Elvis.Pranskevichussetmessageid: <1507059584.22.0.213398074469.issue31681@psf.upfronthosting.co.za>
2017-10-03 19:39:44Elvis.Pranskevichuslinkissue31681 messages
2017-10-03 19:39:44Elvis.Pranskevichuscreate