Refactor a bunch of common code from the "leaf" scripts to a new functions,

parse_GL_API, in gl_XML.py.
This commit is contained in:
Ian Romanick
2005-04-18 19:42:23 +00:00
parent 8ea22650bd
commit 93d2d54e7a
12 changed files with 29 additions and 141 deletions

View File

@@ -25,10 +25,6 @@
# Authors:
# Ian Romanick <idr@us.ibm.com>
from xml.sax import saxutils
from xml.sax import make_parser
from xml.sax.handler import feature_namespaces
import gl_XML
import glX_XML
import license
@@ -889,13 +885,6 @@ if __name__ == '__main__':
else:
show_usage()
parser = make_parser()
parser.setFeature(feature_namespaces, 1)
parser.setContentHandler(dh)
f = open(file_name)
dh.debug = debug
dh.printHeader()
parser.parse(f)
dh.printFooter()
gl_XML.parse_GL_API( dh, file_name )