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

Method __init__

Lib/netrc.py:25–29  ·  view source on GitHub ↗
(self, msg, filename=None, lineno=None)

Source from the content-addressed store, hash-verified

23class NetrcParseError(Exception):
24 """Exception raised on syntax errors in the .netrc file."""
25 def __init__(self, msg, filename=None, lineno=None):
26 self.filename = filename
27 self.lineno = lineno
28 self.msg = msg
29 Exception.__init__(self, msg)
30
31 def __str__(self):
32 return "%s (%s, line %s)" % (self.msg, self.filename, self.lineno)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected