New submission from Matthias Klose: http://www.freedesktop.org/software/systemd/man/os-release.html is a recent standard describing release information for an operating system. platform.linux_distribution() should know about it.
- should that be the first file to be parsed? - names returned for the ID are different than the ones returned from /etc/lsb-release. The os-release thing only allows lower case letters for the ID (e.g. Ubuntu vs. ubuntu). The list of _supported_distros may need to list both. - take the version from VERSION_ID - there is no real attribute for the code name. The closest maybe is VERSION. ---------- components: Library (Lib) messages: 187089 nosy: doko priority: normal severity: normal stage: needs patch status: open title: platform.linux_distribution() should honor /etc/os-release versions: Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17762> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com