mirror of
https://github.com/python/cpython
synced 2026-09-29 09:55:31 +03:00
Add magic to replace the xml package with _xmlplus at import time.
Update docstring to reflect change of name for the parsers subpackage.
This commit is contained in:
parent
ede77bfda4
commit
327e1878ac
1 changed files with 11 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue