[issue31681] pkgutil.get_data() leaks open files in Python 2.7

2017-11-06 Thread Berker Peksag
Change by Berker Peksag : -- pull_requests: -4016 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue31681] pkgutil.get_data() leaks open files in Python 2.7

2017-10-19 Thread George King
Change by George King : -- pull_requests: +4016 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue31681] pkgutil.get_data() leaks open files in Python 2.7

2017-10-09 Thread Éric Araujo
Change by Éric Araujo : -- assignee: -> merwok resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue31681] pkgutil.get_data() leaks open files in Python 2.7

2017-10-09 Thread Éric Araujo
Éric Araujo added the comment: New changeset cfe1aefcbd2534ddc1059a7332842644e6c8d1e4 by Éric Araujo (Elvis Pranskevichus) in branch '2.7': bpo-31681: Make sure pkgutil.get_data closes files properly (#3875) https://github.com/python/cpython/commit/cfe1aefcbd2534ddc1059a7332842644e6c8d1e4 --

[issue31681] pkgutil.get_data() leaks open files in Python 2.7

2017-10-03 Thread Elvis Pranskevichus
Change by Elvis Pranskevichus : -- keywords: +patch pull_requests: +3854 stage: -> patch review ___ Python tracker ___ ___ Python-bu

[issue31681] pkgutil.get_data() leaks open files in Python 2.7

2017-10-03 Thread Elvis Pranskevichus
New submission from Elvis Pranskevichus : 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 n