MCPcopy Index your code
hub / github.com/clips/pattern / __init__

Method __init__

pattern/web/json/decoder.py:45–55  ·  view source on GitHub ↗
(self, msg, doc, pos, end=None)

Source from the content-addressed store, hash-verified

43
44 """
45 def __init__(self, msg, doc, pos, end=None):
46 ValueError.__init__(self, errmsg(msg, doc, pos, end=end))
47 self.msg = msg
48 self.doc = doc
49 self.pos = pos
50 self.end = end
51 self.lineno, self.colno = linecol(doc, pos)
52 if end is not None:
53 self.endlineno, self.endcolno = linecol(doc, end)
54 else:
55 self.endlineno, self.endcolno = None, None
56
57
58def linecol(doc, pos):

Callers

nothing calls this directly

Calls 3

errmsgFunction · 0.85
linecolFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected