]> granicus.if.org Git - python/commit
Ugly fix used when pyexpat is not available.
authorJeremy Hylton <jeremy@alum.mit.edu>
Mon, 30 Jul 2001 21:49:22 +0000 (21:49 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Mon, 30 Jul 2001 21:49:22 +0000 (21:49 +0000)
commite3c37d660f5641f55c12313fde8e20f8178d942a
treeac0ecc369614a80dc45e7164edf6243b6f9e7426
parent3c19ec4eab4dbee3494cd8b8db715e2939d2b917
Ugly fix used when pyexpat is not available.

If pyexpat is not available and more than one attempt is made to load
an expat-based xml parser, an empty xml.parser.expat module will be
created.  This empty module will confuse xml.sax.expatreader into
thinking that pyexpat is available.

The ugly fix is to verify that the expat module actually defines the
names that are imported from pyexpat.
Lib/xml/sax/expatreader.py