Christian Heimes added the comment:
#17762 suggests /etc/os-release instead of /etc/lsb-release.
--
nosy: +christian.heimes
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17761
Changes by Dmitry Shachnev mity...@gmail.com:
--
nosy: +mitya57
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17761
___
___
Python-bugs-list
Éric Araujo added the comment:
+1 to with. The patch also includes an unrelated change.
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17761
___
Antoine Pitrou added the comment:
Can't you use a with statement instead of calling close() explicitly?
--
nosy: +lemburg, pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17761
___
New submission from Matthias Klose:
platform._parse_release_file doesn't close the /etc/lsb-release file, and is
missing Ubuntu in _supported_dists.
--
components: Library (Lib)
messages: 187087
nosy: doko
priority: normal
severity: normal
stage: patch review
status: open
title:
Changes by Matthias Klose d...@debian.org:
--
keywords: +patch
Added file: http://bugs.python.org/file29884/pr17761.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17761
___
Changes by Matthias Klose d...@debian.org:
--
keywords: +needs review -patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17761
___
___