[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

STINNER Victor report at bugs.python.org
Sat Aug 20 23:47:08 CEST 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

For the sys.build_info, I opened #12794 (platform.major()) but then quickly closed it because it was only useful if the issue #12795 (Remove the major version from sys.platform) was accepted, but I closed it.

--

Update votes for "(2) Python 3.3: change sys.platform to 'linux'":

Charles-François Natali: -1
Amaury Forgeot d'Arc: -1

Antoine Pitrou: +1
Barry A. Warsaw: +1
Éric Araujo: +1
Dave Malcolm: +1
Marc-Andre Lemburg: +1
Martin v. Löwis: +1
Victor Stinner: +1

=> total=+5 (9 votes)

The changeset b072e1559d6b (sys.platform is now always 'linux') closes this issue because it solves the initial problem. Did you notice how trivial is the final patch? ;-)

This funny issue is closed, we can now work again on real bugs :-)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12326>
_______________________________________


More information about the Python-bugs-list mailing list