MCPcopy Create free account
hub / github.com/simplejson/simplejson / __init__

Method __init__

simplejson/errors.py:40–50  ·  view source on GitHub ↗
(self, msg, doc, pos, end=None)

Source from the content-addressed store, hash-verified

38 """
39 # Note that this exception is used from _speedups
40 def __init__(self, msg, doc, pos, end=None):
41 ValueError.__init__(self, errmsg(msg, doc, pos, end=end))
42 self.msg = msg
43 self.doc = doc
44 self.pos = pos
45 self.end = end
46 self.lineno, self.colno = linecol(doc, pos)
47 if end is not None:
48 self.endlineno, self.endcolno = linecol(doc, end)
49 else:
50 self.endlineno, self.endcolno = None, None
51
52 def __reduce__(self):
53 return self.__class__, (self.msg, self.doc, self.pos, self.end)

Callers

nothing calls this directly

Calls 2

errmsgFunction · 0.85
linecolFunction · 0.85

Tested by

no test coverage detected