platform module reports imprecise distribution information

Bug #54692 reported by Ryan Lovett
2
Affects Status Importance Assigned to Milestone
Python
Unknown
Unknown
python2.4 (Ubuntu)
Confirmed
Low
Matthias Klose

Bug Description

Binary package hint: python2.4

>>> import platform
>>> platform.dist()
('debian', 'testing/unstable', '')

It appears it is retrieving this information from /etc/debian_version. In my opinion, this should return ('ubuntu', '6.06', 'dapper') as it would help to distinguish between Ubuntu versions in python scripts. platform.py should probably be informed about /etc/lsb-release but I guess that's a decision for upstream.

Revision history for this message
Matthias Klose (doko) wrote :

patch sent to upstream; won't apply before applied upstream

Changed in python2.4:
assignee: nobody → doko
importance: Untriaged → Low
status: Unconfirmed → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.