MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / NetrcParseError

Class NetrcParseError

tools/python-3.11.9-amd64/Lib/netrc.py:10–19  ·  view source on GitHub ↗

Exception raised on syntax errors in the .netrc file.

Source from the content-addressed store, hash-verified

8
9
10class NetrcParseError(Exception):
11 """Exception raised on syntax errors in the .netrc file."""
12 def __init__(self, msg, filename=None, lineno=None):
13 self.filename = filename
14 self.lineno = lineno
15 self.msg = msg
16 Exception.__init__(self, msg)
17
18 def __str__(self):
19 return "%s (%s, line %s)" % (self.msg, self.filename, self.lineno)
20
21
22class _netrclex:

Callers 2

_parseMethod · 0.85
_security_checkMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected