MCPcopy Create free account
hub / github.com/RustPython/RustPython / parseString

Function parseString

Lib/xml/dom/pulldom.py:329–336  ·  view source on GitHub ↗
(string, parser=None)

Source from the content-addressed store, hash-verified

327 return DOMEventStream(stream, parser, bufsize)
328
329def parseString(string, parser=None):
330 from io import StringIO
331
332 bufsize = len(string)
333 buf = StringIO(string)
334 if not parser:
335 parser = xml.sax.make_parser()
336 return DOMEventStream(buf, parser, bufsize)

Callers

nothing calls this directly

Calls 4

StringIOClass · 0.90
lenFunction · 0.85
DOMEventStreamClass · 0.85
make_parserMethod · 0.80

Tested by

no test coverage detected