summaryrefslogtreecommitdiffstats
path: root/Lib/xml
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-08-01 00:05:16 (GMT)
committerFred Drake <fdrake@acm.org>2000-08-01 00:05:16 (GMT)
commit327e1878ac325c0654b01493ae3abb9f3f92fb2a (patch)
treec74d2561ebd8881c4f0be42a36befffd70aca9b1 /Lib/xml
parentede77bfda42b95da733ef0e266d5681de308138c (diff)
downloadcpython-327e1878ac325c0654b01493ae3abb9f3f92fb2a.zip
cpython-327e1878ac325c0654b01493ae3abb9f3f92fb2a.tar.gz
cpython-327e1878ac325c0654b01493ae3abb9f3f92fb2a.tar.bz2
Add magic to replace the xml package with _xmlplus at import time.
Update docstring to reflect change of name for the parsers subpackage.
Diffstat (limited to 'Lib/xml')
-rw-r--r--Lib/xml/__init__.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/Lib/xml/__init__.py b/Lib/xml/__init__.py
index 02a8341..0a80011 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