MCPcopy Index your code
hub / github.com/python/cpython / feed

Method feed

Lib/xml/etree/ElementTree.py:1724–1729  ·  view source on GitHub ↗

Feed encoded data to parser.

(self, data)

Source from the content-addressed store, hash-verified

1722 self._doctype = None
1723
1724 def feed(self, data):
1725 """Feed encoded data to parser."""
1726 try:
1727 self.parser.Parse(data, False)
1728 except self._error as v:
1729 self._raiseerror(v)
1730
1731 def close(self):
1732 """Finish feeding data to parser and return element structure."""

Callers 15

test_parsefileMethod · 0.95
test_custom_builderMethod · 0.95
test_entityMethod · 0.95
test_bug_xmltoolkit62Method · 0.95
test_bug_200708_closeMethod · 0.95
test_dummy_builderMethod · 0.95
test_late_tailMethod · 0.95
test_subclassMethod · 0.95

Calls 1

_raiseerrorMethod · 0.95

Tested by 15

test_parsefileMethod · 0.76
test_custom_builderMethod · 0.76
test_entityMethod · 0.76
test_bug_xmltoolkit62Method · 0.76
test_bug_200708_closeMethod · 0.76
test_dummy_builderMethod · 0.76
test_late_tailMethod · 0.76
test_subclassMethod · 0.76