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

Function readFile

Singular/dyn_modules/openmath/omxmlreader.py:16–24  ·  view source on GitHub ↗
(input_file_name)

Source from the content-addressed store, hash-verified

14from exceptions import *
15from omexceptions import *
16def readFile(input_file_name):
17 docstream = open(input_file_name)
18 docIS=DOMInputSource()
19 docIS.byteStream=docstream
20 doc= DOMBuilder().parse(docIS)
21 docstream.close()
22
23 root=doc.lastChild
24 return root
25
26def readStream(input_stream):
27 docIS=DOMInputSource()

Callers 1

omxmlreader.pyFile · 0.85

Calls 1

closeMethod · 0.80

Tested by

no test coverage detected