diff options
author | Fred Drake <fdrake@acm.org> | 2001-03-06 06:55:18 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-03-06 06:55:18 (GMT) |
commit | 990b0fec1abc2b87dc1fb1ed1284f20888b5027e (patch) | |
tree | 17d36a65c5166e878d355a2286a04ab8bd0f93d3 /Doc | |
parent | ec6ec90dd296d51d214726d192f6bb2b35453830 (diff) | |
download | cpython-990b0fec1abc2b87dc1fb1ed1284f20888b5027e.zip cpython-990b0fec1abc2b87dc1fb1ed1284f20888b5027e.tar.gz cpython-990b0fec1abc2b87dc1fb1ed1284f20888b5027e.tar.bz2 |
Update documentation to reflect the shift to NetrcParseError instead of
SyntaxError.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libnetrc.tex | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Doc/lib/libnetrc.tex b/Doc/lib/libnetrc.tex index d11ed01..c7573f9 100644 --- a/Doc/lib/libnetrc.tex +++ b/Doc/lib/libnetrc.tex @@ -18,10 +18,18 @@ A \class{netrc} instance or subclass instance encapsulates data from a netrc file. The initialization argument, if present, specifies the file to parse. If no argument is given, the file \file{.netrc} in the user's home directory will be read. Parse errors will raise -\exception{SyntaxError} with diagnostic information including the file -name, line number, and terminating token. +\exception{NetrcParseError} with diagnostic information including the +file name, line number, and terminating token. \end{classdesc} +\begin{excdesc}{NetrcParseError} +Exception raised by the \class{netrc} class when syntactical errors +are encountered in source text. Instances of this exception provide +three interesting attributes: \member{msg} is a textual explanation +of the error, \member{filename} is the name of the source file, and +\member{lineno} gives the line number on which the error was found. +\end{excdesc} + \subsection{netrc Objects \label{netrc-objects}} |