summaryrefslogtreecommitdiffstats
path: root/src/mapi/glapi/gen/glX_XML.py
diff options
context:
space:
mode:
authorMathieu Bridon <[email protected]>2018-07-06 12:13:36 +0200
committerDylan Baker <[email protected]>2018-07-06 10:18:43 -0700
commitb39bdb07164211c483a3c8a8625689169be09cc4 (patch)
tree64f84b5851c3346213ea573c79f10ca37edceb75 /src/mapi/glapi/gen/glX_XML.py
parente5a8d51e541376077d3ca72f00eacadab6ac0501 (diff)
python: Stop using the Python 2 exception syntax
We could have made this compatible with Python 3 by using: except Exception as e: But since none of this code actually uses the exception objects, let's just drop them entirely. Signed-off-by: Mathieu Bridon <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Dylan Baker <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mapi/glapi/gen/glX_XML.py')
-rw-r--r--src/mapi/glapi/gen/glX_XML.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/glX_XML.py b/src/mapi/glapi/gen/glX_XML.py
index b6d305c8797..d09370a508f 100644
--- a/src/mapi/glapi/gen/glX_XML.py
+++ b/src/mapi/glapi/gen/glX_XML.py
@@ -470,7 +470,7 @@ class glx_function(gl_XML.gl_function):
def needs_reply(self):
try:
x = self._needs_reply
- except Exception, e:
+ except Exception:
x = 0
if self.return_type != 'void':
x = 1