Author matrixise
Recipients christian.heimes, cstratak, doko, matrixise, r.david.murray, vstinner
Date 2016-10-18.13:07:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1476796042.46.0.204057967828.issue28468@psf.upfronthosting.co.za>
In-reply-to
Content
We need a fallback in the case where /etc/os-release does not exists, or just use hasattr on `platform`

if hasattr(platform, 'linux_os_release'):
   print(platform.linux_os_release())
else:
   ...

or just raise an exception if platform.linux_os_release is not available.
History
Date User Action Args
2016-10-18 13:07:22matrixisesetrecipients: + matrixise, doko, vstinner, christian.heimes, r.david.murray, cstratak
2016-10-18 13:07:22matrixisesetmessageid: <1476796042.46.0.204057967828.issue28468@psf.upfronthosting.co.za>
2016-10-18 13:07:22matrixiselinkissue28468 messages
2016-10-18 13:07:22matrixisecreate