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

Method _raiseerror

Lib/xml/etree/ElementTree.py:1632–1636  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

1630 raise ValueError("unknown event %r" % event_name)
1631
1632 def _raiseerror(self, value):
1633 err = ParseError(value)
1634 err.code = value.code
1635 err.position = value.lineno, value.offset
1636 raise err
1637
1638 def _fixname(self, key):
1639 # expand qname, and convert name string to ascii, if possible

Callers 3

feedMethod · 0.95
closeMethod · 0.95
flushMethod · 0.95

Calls 1

ParseErrorClass · 0.70

Tested by

no test coverage detected