Searched defs:lxml (Results 1 - 7 of 7) sorted by relevance

/external/chromium-trace/catapult/third_party/beautifulsoup4/bs4/tests/
H A Dtest_lxml.py1 """Tests to ensure that the lxml tree builder generates good trees."""
7 import lxml.etree namespace
9 LXML_VERSION = lxml.etree.LXML_VERSION
33 "lxml seems not to be present, not testing its tree builder.")
49 # In lxml < 2.3.5, an empty doctype causes a segfault. Skip this
50 # test if an old version of lxml is installed.
54 "Skipping doctype test for old version of lxml to avoid segfault.")
69 """lxml strips the XML definition from an XHTML doc, which is fine."""
85 "lxml seems not to be present, not testing its XML tree builder.")
/external/chromium-trace/catapult/third_party/html5lib-python/doc/
H A Dconf.py269 import lxml # flake8: noqa namespace
271 sys.modules['lxml'] = CExtMock()
272 sys.modules['lxml.etree'] = CExtMock()
273 print("warning: lxml modules mocked.")
/external/chromium-trace/catapult/third_party/html5lib-python/
H A Dparse.py115 elif tb == "lxml":
116 import lxml.etree namespace
117 sys.stdout.write(lxml.etree.tostring(document))
/external/chromium-trace/catapult/third_party/html5lib-python/html5lib/tests/
H A Dsupport.py45 import lxml.etree as lxml # flake8: noqa namespace
49 treeTypes['lxml'] = treebuilders.getTreeBuilder("lxml")
H A Dtest_treewalkers.py77 import lxml.etree as ElementTree # flake8: noqa namespace
82 {"builder": treebuilders.getTreeBuilder("lxml"),
83 "walker": treewalkers.getTreeWalker("lxml")}
/external/chromium-trace/catapult/third_party/html5lib-python/html5lib/treebuilders/
H A Detree_lxml.py1 """Module for supporting the lxml.etree library. The idea here is to use as much
24 import lxml.etree as etree namespace
295 warnings.warn("lxml cannot represent empty doctype", DataLossWarning)
300 warnings.warn("lxml cannot represent non-xml doctype", DataLossWarning)
311 warnings.warn("lxml cannot represent adjacent comments beyond the root elements", DataLossWarning)
341 warnings.warn("lxml cannot represent doctype with a different name to the root element", DataLossWarning)
/external/chromium-trace/catapult/third_party/webtest/webtest/
H A Dresponse.py459 def lxml(self): member in class:TestResponse
461 Returns the response as an `lxml object
462 <http://codespeak.net/lxml/>`_. You must have lxml installed
465 If this is an HTML response and you have lxml 2.x installed,
466 then an ``lxml.html.HTML`` object will be returned; if you
467 have an earlier version of lxml then a ``lxml.HTML`` object
476 from lxml import etree
479 "You must have lxml installe
[all...]

Completed in 98 milliseconds