[Xcb] [PATCH] Fix Python syntactical ambiguity in except clause that causes build to fail on Python 3 series.
David Coles
dcoles at gaikai.com
Fri Apr 8 12:54:43 PDT 2011
On Fri, Apr 8, 2011 at 7:03 PM, David Coles <dcoles at gaikai.com> wrote:
> See PEP-3110 for details. Verified to work on Python 2.6.5 and 3.1.3.
>
> Signed-off-by: David Coles <dcoles at gaikai.com>
> ---
> src/c_client.py | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/c_client.py b/src/c_client.py
> index a10b3f1..3123093 100644
> --- a/src/c_client.py
> +++ b/src/c_client.py
> @@ -2282,7 +2282,7 @@ output = {'open' : c_open,
> # Check for the argument that specifies path to the xcbgen python package.
> try:
> opts, args = getopt.getopt(sys.argv[1:], 'p:')
> -except getopt.GetoptError, err:
> +except getopt.GetoptError as err:
> print str(err)
> print 'Usage: c_client.py [-p path] file.xml'
> sys.exit(1)
> --
> 1.7.3.4
>
>
OK. Looks like that was a bit hasty. You need to fix the print statements
too.
I guess it's time to grab a version of Python 2.5 and to check that we're
not breaking that either.
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20110408/01297f2d/attachment.html>
More information about the Xcb
mailing list