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

Class NetrcParseError

Lib/netrc.py:23–32  ·  view source on GitHub ↗

Exception raised on syntax errors in the .netrc file.

Source from the content-addressed store, hash-verified

21
22
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)
33
34
35class _netrclex:

Callers 2

_parseMethod · 0.85
_security_checkMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…