[Xcb] [PATCH 2/2] c_client.py: Fix python-3 invalid except statement

Chí-Thanh Christopher Nguyễn chithanh at gentoo.org
Wed Oct 10 16:58:59 PDT 2012


Peter Harris schrieb:
> On 2012-10-10 19:14, Chí-Thanh Christopher Nguyễn wrote:
>> -except OSError, e:
>> +except OSError as e:
> 
> This breaks python 2.6 and earlier.

If I understand PEP-3110[1] correctly, python 2.6 supports this syntax
already. Also this syntax is used in one other place in client.py:
2882: except getopt.GetoptError as err:

Best regards,
Chí-Thanh Christopher Nguyễn


[1] http://www.python.org/dev/peps/pep-3110/



More information about the Xcb mailing list