[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:03:23 PDT 2011


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



More information about the Xcb mailing list