diff --git a/Lib/xml/__init__.py b/Lib/xml/__init__.py index 02a83419b9b..0a80011f5fd 100644 --- a/Lib/xml/__init__.py +++ b/Lib/xml/__init__.py @@ -5,9 +5,19 @@ This package contains three sub-packages: dom -- The W3C Document Object Model. This supports DOM Level 1 + Namespaces. -parser -- Python wrappers for XML parsers (currently only supports Expat). +parsers -- Python wrappers for XML parsers (currently only supports Expat). sax -- The Simple API for XML, developed by XML-Dev, led by David Megginson and ported to Python by Lars Marius Garshol. This supports the SAX 2 API. """ + + +if __name__ == "xml": + try: + import _xmlplus + except ImportError: + pass + else: + import sys + sys.modules[__name__] = _xmlplus