[issue17761] platform._parse_release_file doesn't close the /etc/lsb-release file, doesn't know about 'Ubuntu'

Antoine Pitrou report at bugs.python.org
Wed Apr 17 20:50:43 CEST 2013


Antoine Pitrou added the comment:

Can't you use a "with" statement instead of calling close() explicitly?

----------
nosy: +lemburg, pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17761>
_______________________________________


More information about the Python-bugs-list mailing list