[Python-checkins] CVS: python/dist/src/Doc/lib libnetrc.tex,1.7,1.8
Fred L. Drake
fdrake@users.sourceforge.net
Mon, 05 Mar 2001 22:55:20 -0800
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv14846/lib
Modified Files:
libnetrc.tex
Log Message:
Update documentation to reflect the shift to NetrcParseError instead of
SyntaxError.
Index: libnetrc.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libnetrc.tex,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** libnetrc.tex 2000/07/16 19:01:09 1.7
--- libnetrc.tex 2001/03/06 06:55:18 1.8
***************
*** 19,25 ****
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.
\end{classdesc}
--- 19,33 ----
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{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}