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

Method parse_pi

Lib/html/parser.py:414–423  ·  view source on GitHub ↗
(self, i)

Source from the content-addressed store, hash-verified

412
413 # Internal -- parse processing instr, return end or -1 if not terminated
414 def parse_pi(self, i):
415 rawdata = self.rawdata
416 assert rawdata[i:i+2] == '<?', 'unexpected call to parse_pi()'
417 match = piclose.search(rawdata, i+2) # >
418 if not match:
419 return -1
420 j = match.start()
421 self.handle_pi(rawdata[i+2: j])
422 j = match.end()
423 return j
424
425 # Internal -- handle starttag, return end or -1 if not terminated
426 def parse_starttag(self, i):

Callers 1

goaheadMethod · 0.95

Calls 4

handle_piMethod · 0.95
searchMethod · 0.45
startMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected