New submission from Elvis Pranskevichus <[email protected]>:
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.
----------
components: Library (Lib)
messages: 303642
nosy: Elvis.Pranskevichus
priority: normal
severity: normal
status: open
title: pkgutil.get_data() leaks open files in Python 2.7
type: resource usage
versions: Python 2.7
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue31681>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com