summaryrefslogtreecommitdiff
path: root/src/mapi/glapi/gen/gl_XML.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapi/glapi/gen/gl_XML.py')
-rw-r--r--src/mapi/glapi/gen/gl_XML.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mapi/glapi/gen/gl_XML.py b/src/mapi/glapi/gen/gl_XML.py
index de1001980a..695ef7f07b 100644
--- a/src/mapi/glapi/gen/gl_XML.py
+++ b/src/mapi/glapi/gen/gl_XML.py
@@ -685,7 +685,7 @@ class gl_function(gl_item):
if len(parameters) != len(self.parameters):
raise RuntimeError("Parameter count mismatch in %s. Was %d, now %d." % (name, len(self.parameters), len(parameters)))
- for j in range(0, len(parameters)):
+ for j in xrange(0, len(parameters)):
p1 = parameters[j]
p2 = self.parameters[j]
if not p1.compatible(p2):
@@ -975,9 +975,8 @@ class gl_api(object):
classify_category. Each iterated value is a tuple of the
name and number (which may be None) of the category.
"""
-
list = []
- for cat_type in range(0,4):
+ for cat_type in xrange(0,4):
keys = self.categories[cat_type].keys()
keys.sort()