MCPcopy Create free account
hub / github.com/ActiveState/code / extract_output

Function extract_output

recipes/Python/576598_Utility_Mill_Test/recipe-576598.py:25–32  ·  view source on GitHub ↗
(dom)

Source from the content-addressed store, hash-verified

23 return file.read().decode()
24
25def extract_output(dom):
26 elements = dom.getElementsByTagName('output')
27 assert len(elements) == 1, 'XML Error'
28 output = elements[0]
29 assert len(output.childNodes) == 1, 'XML Error'
30 child = output.childNodes[0]
31 assert child.nodeType == child.CDATA_SECTION_NODE, 'XML Error'
32 return child.nodeValue
33
34def get_revision(name):
35 string = info_utility('xml', name)

Callers 1

get_outputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected