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

Peter Harris git at peter.is-a-geek.org
Wed Oct 10 18:28:59 PDT 2012


On Wed, Oct 10, 2012 at 7:58 PM, Chí-Thanh Christopher Nguyễn wrote:
> 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:

My mistake. Thanks for the correction.

For the series, Reviewed-by: Peter Harris <pharris at opentext.com>

Peter Harris


More information about the Xcb mailing list