# defusedxml # # Copyright (c) 2013 by Christian Heimes <christian@python.org> # Licensed to PSF under a Contributor Agreement. # See https://www.python.org/psf/license for licensing details. """Defused xml.etree.cElementTree """ from __future__ import absolute_import from xml.etree.cElementTree import TreeBuilder as _TreeBuilder from xml.etree.cElementTree import parse as _parse from xml.etree.cElementTree import tostring # iterparse from ElementTree! from xml.etree.ElementTree import iterparse as _iterparse from .ElementTree import DefusedXMLParser from .common import _generate_etree_functions __origin__ = "xml.etree.cElementTree" # XMLParse is a typo, keep it for backwards compatibility XMLTreeBuilder = XMLParse = XMLParser = DefusedXMLParser parse, iterparse, fromstring = _generate_etree_functions( DefusedXMLParser, _TreeBuilder, _parse, _iterparse ) XML = fromstring __all__ = [ "XML", "XMLParse", "XMLParser", "XMLTreeBuilder", "fromstring", "iterparse", "parse", "tostring", ]
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__pycache__ | Folder | 0755 |
|
|
ElementTree.py | File | 4.18 KB | 0644 |
|
__init__.py | File | 1.32 KB | 0644 |
|
cElementTree.py | File | 1.02 KB | 0644 |
|
common.py | File | 3.97 KB | 0644 |
|
expatbuilder.py | File | 3.64 KB | 0644 |
|
expatreader.py | File | 2.14 KB | 0644 |
|
lxml.py | File | 4.84 KB | 0644 |
|
minidom.py | File | 1.84 KB | 0644 |
|
pulldom.py | File | 1.14 KB | 0644 |
|
sax.py | File | 1.44 KB | 0644 |
|
xmlrpc.py | File | 5.24 KB | 0644 |
|