Exception raised on syntax errors in the .netrc file.
| 21 | |
| 22 | |
| 23 | class 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 | |
| 35 | class _netrclex: |
no outgoing calls
no test coverage detected
searching dependent graphs…