diff options
author | Paul Berry <[email protected]> | 2012-10-10 11:01:35 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2012-10-16 12:03:55 -0700 |
commit | 7dc052b12bb8341a57151e1f3cefb8f9d15d5192 (patch) | |
tree | 69507205e257e65566425e7e6c83edd14775ec09 /src/mapi/glapi/gen/glX_proto_size.py | |
parent | 41954107c00d68869f0316126908e873662b4c6d (diff) |
glapi: use new-style Python classes.
An unfortunate quirk of Python 2 is that there are two types of
classes: "classic" classes (which are backward compatible with some
unfortunate design decisions made early in Python's history), and
"new-style" classes. Classic classes have a number of limitations
(for example they don't support super()) and are unavailable in Python
3. There's really no reason to use classic classes, except in
unmaintained legacy code. For more information see
http://www.python.org/download/releases/2.2.3/descrintro/.
This patch upgrades the Python code in src/mapi/glapi/gen to use
exclusively new-style classes.
Tested-by: Matt Turner <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mapi/glapi/gen/glX_proto_size.py')
-rw-r--r-- | src/mapi/glapi/gen/glX_proto_size.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/glX_proto_size.py b/src/mapi/glapi/gen/glX_proto_size.py index 7db816b2c01..fdb355d4d84 100644 --- a/src/mapi/glapi/gen/glX_proto_size.py +++ b/src/mapi/glapi/gen/glX_proto_size.py @@ -30,7 +30,7 @@ import license import sys, getopt, copy, string -class glx_enum_function: +class glx_enum_function(object): def __init__(self, func_name, enum_dict): self.name = func_name self.mode = 1 |