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

Method parse

Lib/xml/dom/xmlbuilder.py:187–195  ·  view source on GitHub ↗
(self, input)

Source from the content-addressed store, hash-verified

185 return self.parse(input)
186
187 def parse(self, input):
188 options = copy.copy(self._options)
189 options.filter = self.filter
190 options.errorHandler = self.errorHandler
191 fp = input.byteStream
192 if fp is None and input.systemId:
193 import urllib.request
194 fp = urllib.request.urlopen(input.systemId)
195 return self._parse_bytestream(fp, options)
196
197 def parseWithContext(self, input, cnode, action):
198 if action not in self._legal_actions:

Callers 3

parseURIMethod · 0.95
parseFunction · 0.45
_slurpMethod · 0.45

Calls 3

_parse_bytestreamMethod · 0.95
copyMethod · 0.45
urlopenMethod · 0.45

Tested by

no test coverage detected