0001 """Core XML support for Python. 0002 0003 This package contains three sub-packages: 0004 0005 dom -- The W3C Document Object Model. This supports DOM Level 1 + 0006 Namespaces. 0007 0008 parsers -- Python wrappers for XML parsers (currently only supports Expat). 0009 0010 sax -- The Simple API for XML, developed by XML-Dev, led by David 0011 Megginson and ported to Python by Lars Marius Garshol. This 0012 supports the SAX 2 API. 0013 """ 0014 0015 0016 __all__ = ["dom", "parsers", "sax"] 0017 0018 # When being checked-out without options, this has the form 0019 # "<dollar>Revision: x.y </dollar>" 0020 # When exported using -kv, it is "x.y". 0021 __version__ = "$Revision: 1.14 $".split()[-2:][0] 0022 0023 0024 _MINIMUM_XMLPLUS_VERSION = (0, 8, 4) 0025 0026 0027 try: 0028 import _xmlplus 0029 except ImportError: 0030 pass 0031 else: 0032 try: 0033 v = _xmlplus.version_info 0034 except AttributeError: 0035 # _xmlplue is too old; ignore it 0036 pass 0037 else: 0038 if v >= _MINIMUM_XMLPLUS_VERSION: 0039 import sys 0040 sys.modules[__name__] = _xmlplus 0041 else: 0042 del v 0043
Generated by PyXR 0.9.4