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

Sandro Tosi report at bugs.python.org
Tue Aug 16 16:28:35 CEST 2011


Sandro Tosi <sandro.tosi at gmail.com> added the comment:

On Tue, Aug 16, 2011 at 16:21, Barry A. Warsaw <report at bugs.python.org> wrote:
>
> Barry A. Warsaw <barry at python.org> added the comment:
>
> @Sandro:
>
>>> FTR, for Debian and derivatives, doko chose to use 'linux2' when building on linux3.
>
>>Luckily that has just been reverted.
>
> No, I don't think it has: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=633015
>
> On Debian Wheezy and Ubuntu 11.10:
>
> $ python2.7 -c 'import sys; print sys.platform'
> linux2
> $ python3.2 -c 'import sys; print(sys.platform)'
> linux2

that's because you're on wheezy, that has 2.7.2-3, while the version
which has the change reverted is -4 (still not transition to testing,
since outdated on kbsd-i386)

----------

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


More information about the Python-bugs-list mailing list