summaryrefslogtreecommitdiff
path: root/src/mesa/glapi/glX_proto_size.py
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2005-04-18 19:16:07 +0000
committerIan Romanick <idr@us.ibm.com>2005-04-18 19:16:07 +0000
commit2510ba618d8b48819098b062fb30fec7b19c75ff (patch)
tree7dbd19ca008c8fa545e9f0a5f354060ed71f5812 /src/mesa/glapi/glX_proto_size.py
parentb7142567bc6badc952c1dac9b1b095c4517b2492 (diff)
Convert all Python scripts to use XML namespaces.
Diffstat (limited to 'src/mesa/glapi/glX_proto_size.py')
-rw-r--r--src/mesa/glapi/glX_proto_size.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mesa/glapi/glX_proto_size.py b/src/mesa/glapi/glX_proto_size.py
index cc28b8951c..5049545222 100644
--- a/src/mesa/glapi/glX_proto_size.py
+++ b/src/mesa/glapi/glX_proto_size.py
@@ -246,8 +246,9 @@ class PrintGlxReqSize_common(glX_XML.GlxProto):
self.size_functions = []
- def endElement(self, name):
- if name == "function":
+ def endElementNS(self, name, qname):
+ [uri, true_name] = name
+ if true_name == "function":
f = self.current_object
if f.glx_rop and not f.ignore and f.fn_alias == None and f.vectorequiv == None:
@@ -259,7 +260,7 @@ class PrintGlxReqSize_common(glX_XML.GlxProto):
self.size_functions.append( f )
break
- glX_XML.GlxProto.endElement(self, name)
+ glX_XML.GlxProto.endElementNS(self, name, qname)
def functionIterator(self):
@@ -533,7 +534,7 @@ if __name__ == '__main__':
show_usage()
parser = make_parser()
- parser.setFeature(feature_namespaces, 0)
+ parser.setFeature(feature_namespaces, 1)
parser.setContentHandler(dh)
f = open(file_name)