]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Python-2.7.10/Lib/xml/__init__.py
AppPkg/Applications/Python/Python-2.7.10: Initial Checkin part 4/5.
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.10 / Lib / xml / __init__.py
diff --git a/AppPkg/Applications/Python/Python-2.7.10/Lib/xml/__init__.py b/AppPkg/Applications/Python/Python-2.7.10/Lib/xml/__init__.py
new file mode 100644 (file)
index 0000000..086543a
--- /dev/null
@@ -0,0 +1,41 @@
+"""Core XML support for Python.\r
+\r
+This package contains four sub-packages:\r
+\r
+dom -- The W3C Document Object Model.  This supports DOM Level 1 +\r
+       Namespaces.\r
+\r
+parsers -- Python wrappers for XML parsers (currently only supports Expat).\r
+\r
+sax -- The Simple API for XML, developed by XML-Dev, led by David\r
+       Megginson and ported to Python by Lars Marius Garshol.  This\r
+       supports the SAX 2 API.\r
+\r
+etree -- The ElementTree XML library.  This is a subset of the full\r
+       ElementTree XML release.\r
+\r
+"""\r
+\r
+\r
+__all__ = ["dom", "parsers", "sax", "etree"]\r
+\r
+_MINIMUM_XMLPLUS_VERSION = (0, 8, 4)\r
+\r
+\r
+try:\r
+    import _xmlplus\r
+except ImportError:\r
+    pass\r
+else:\r
+    try:\r
+        v = _xmlplus.version_info\r
+    except AttributeError:\r
+        # _xmlplus is too old; ignore it\r
+        pass\r
+    else:\r
+        if v >= _MINIMUM_XMLPLUS_VERSION:\r
+            import sys\r
+            _xmlplus.__path__.extend(__path__)\r
+            sys.modules[__name__] = _xmlplus\r
+        else:\r
+            del v\r