Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/AnonR/smanonr..../usr/lib64/python2..../xml
File: __init__.py
"""Core XML support for Python.
[0] Fix | Delete
[1] Fix | Delete
This package contains four sub-packages:
[2] Fix | Delete
[3] Fix | Delete
dom -- The W3C Document Object Model. This supports DOM Level 1 +
[4] Fix | Delete
Namespaces.
[5] Fix | Delete
[6] Fix | Delete
parsers -- Python wrappers for XML parsers (currently only supports Expat).
[7] Fix | Delete
[8] Fix | Delete
sax -- The Simple API for XML, developed by XML-Dev, led by David
[9] Fix | Delete
Megginson and ported to Python by Lars Marius Garshol. This
[10] Fix | Delete
supports the SAX 2 API.
[11] Fix | Delete
[12] Fix | Delete
etree -- The ElementTree XML library. This is a subset of the full
[13] Fix | Delete
ElementTree XML release.
[14] Fix | Delete
[15] Fix | Delete
"""
[16] Fix | Delete
[17] Fix | Delete
[18] Fix | Delete
__all__ = ["dom", "parsers", "sax", "etree"]
[19] Fix | Delete
[20] Fix | Delete
_MINIMUM_XMLPLUS_VERSION = (0, 8, 4)
[21] Fix | Delete
[22] Fix | Delete
[23] Fix | Delete
try:
[24] Fix | Delete
import _xmlplus
[25] Fix | Delete
except ImportError:
[26] Fix | Delete
pass
[27] Fix | Delete
else:
[28] Fix | Delete
try:
[29] Fix | Delete
v = _xmlplus.version_info
[30] Fix | Delete
except AttributeError:
[31] Fix | Delete
# _xmlplus is too old; ignore it
[32] Fix | Delete
pass
[33] Fix | Delete
else:
[34] Fix | Delete
if v >= _MINIMUM_XMLPLUS_VERSION:
[35] Fix | Delete
import sys
[36] Fix | Delete
_xmlplus.__path__.extend(__path__)
[37] Fix | Delete
sys.modules[__name__] = _xmlplus
[38] Fix | Delete
else:
[39] Fix | Delete
del v
[40] Fix | Delete
[41] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function