Re: [PATCH] backports: specify python2.7 for gentree.py

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

On Sun, Jun 2, 2013 at 5:00 PM, Anh K. Huynh <kyanh@xxxxxxxxxxx> wrote:
> On Sun,  2 Jun 2013 16:12:13 -0700
> Thomas Pedersen <thomas@xxxxxxxxxxx> wrote:
>
>> Apparently gentree.py uses some python2.7 specific syntax. Fixes:
>>
>> ./gentree.py -h
>>   File "./gentree.py", line 72
>>     except OSError, e:
>>                   ^
>> SyntaxError: invalid syntax
>>
>> On distros where /usr/bin/python points to python3.
>
> FYI, on ArchLinux, `/usr/bin/python` is 3.0, and the old Python
> (installed by the package `python2`) uses `/usr/bin/python2`.

python2.7 is also provided by the python2 package. Do you think asking
for python2 is a more portable solution?

--
Thomas
--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux