Title: incorrect detection of information of some distributions python2
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 2.7
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: lemburg, mrandybu, vstinner
Priority: normal Keywords: patch

Created on 2018-05-15 06:59 by mrandybu, last changed 2018-05-17 07:11 by serhiy.storchaka. This issue is now closed.

File name Uploaded Description Edit
fix-issue-33513.patch mrandybu, 2018-05-15 07:08
Pull Requests
URL Status Linked Edit
PR 6855 closed mrandybu, 2018-05-15 07:47
Messages (2)
msg316628 - (view) Author: Andrey Bychkov (mrandybu) * Date: 2018-05-15 06:59
In some linux distributions, the information about the distribution is incorrectly determined when the linux_distribution() method is called from the platform class. Since the information file os-release becomes a certain standard, I propose first of all to check its availability and if it is in the system - parse the information from it.
msg316888 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-05-17 07:07
Oh wow. That looks more like a new feature than a bugfix or short cleanup. I'm not sure that it's ok to do it in Python 2.

platform.linux_distribution() is deprecated since Python 3.5 and just has been removed from Python 3.8: see bpo-28167.

I suggest to close this issue as WONTFIX, sorry.
Date User Action Args
2018-05-17 07:11:11serhiy.storchakasetstatus: open -> closed
resolution: wont fix
stage: patch review -> resolved
2018-05-17 07:07:40vstinnersetnosy: + vstinner
messages: + msg316888
2018-05-15 08:58:19ned.deilysetnosy: + lemburg
2018-05-15 07:47:35mrandybusetstage: patch review
pull_requests: + pull_request6530
2018-05-15 07:08:05mrandybusetfiles: + fix-issue-33513.patch
keywords: + patch
2018-05-15 06:59:11mrandybucreate