MCPcopy Create free account
hub / github.com/Singular/Singular / readStream

Function readStream

Singular/dyn_modules/openmath/omxmlreader.py:26–32  ·  view source on GitHub ↗
(input_stream)

Source from the content-addressed store, hash-verified

24 return root
25
26def readStream(input_stream):
27 docIS=DOMInputSource()
28 docIS.byteStream=input_stream
29 doc= DOMBuilder().parse(docIS)
30
31 root=doc.lastChild
32 return root
33def get_text_in_children(n):
34 t = ""
35 for c in n.childNodes:

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected