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_table.py | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'src/mesa/glapi/gl_table.py') diff --git a/src/mesa/glapi/gl_table.py b/src/mesa/glapi/gl_table.py index 30dcd4149f..3b8f1ca411 100644 --- a/src/mesa/glapi/gl_table.py +++ b/src/mesa/glapi/gl_table.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 @@ -82,13 +78,4 @@ if __name__ == '__main__': file_name = val dh = PrintGlTable() - - 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