From 93d2d54e7a11cf1a01c976ede37db2320ccc2dff Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 18 Apr 2005 19:42:23 +0000 Subject: Refactor a bunch of common code from the "leaf" scripts to a new functions, parse_GL_API, in gl_XML.py. --- src/mesa/glapi/gl_x86_asm.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src/mesa/glapi/gl_x86_asm.py') diff --git a/src/mesa/glapi/gl_x86_asm.py b/src/mesa/glapi/gl_x86_asm.py index 02dafa5c62..85a5c2be05 100644 --- a/src/mesa/glapi/gl_x86_asm.py +++ b/src/mesa/glapi/gl_x86_asm.py @@ -25,10 +25,6 @@ # Authors: # Ian Romanick -from xml.sax import saxutils -from xml.sax import make_parser -from xml.sax.handler import feature_namespaces - import gl_XML import license import sys, getopt @@ -247,12 +243,4 @@ if __name__ == '__main__': print "ERROR: Invalid mode \"%s\" specified." % mode show_usage() - parser = make_parser() - parser.setFeature(feature_namespaces, 1) - parser.setContentHandler(dh) - - f = open(file_name) - - dh.printHeader() - parser.parse(f) - dh.printFooter() + gl_XML.parse_GL_API( dh, file_name ) -- cgit v1.2.3