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

Method parseFile

Lib/xml/dom/expatbuilder.py:613–616  ·  view source on GitHub ↗

Parse a document fragment from a file object, returning the fragment node.

(self, file)

Source from the content-addressed store, hash-verified

611 self.fragment = None
612
613 def parseFile(self, file):
614 """Parse a document fragment from a file object, returning the
615 fragment node."""
616 return self.parseString(file.read())
617
618 def parseString(self, string):
619 """Parse a document fragment from a string, returning the

Callers 1

parseFragmentFunction · 0.95

Calls 2

parseStringMethod · 0.95
readMethod · 0.45

Tested by

no test coverage detected