Kaydet (Commit) 0256444b authored tarafından Fred Drake's avatar Fred Drake

Since pyexpat isn't always available in Python 2.2, allow repeated

imports of xml.parsers.expat to raise ImportError if pyexpat isn't
available.

Not needed in Python 2.3, since pyexpat is always built there.
üst f78a5cd3
"""Interface to the Expat non-validating XML parser."""
__version__ = '$Revision$'
from pyexpat import *
import sys
try:
from pyexpat import *
except ImportError:
del sys.modules[__name__]
del sys
raise
del sys
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment