summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libsgmllib.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2004-09-10 01:20:21 (GMT)
committerFred Drake <fdrake@acm.org>2004-09-10 01:20:21 (GMT)
commit961c2882a920f137543585175db9957bf48223f3 (patch)
treedf8ee0408a4d7890b09a51611012ab746bda48e7 /Doc/lib/libsgmllib.tex
parenta2544ee7f0ecbab945d1bb6bb8de6a72c71768ed (diff)
downloadcpython-961c2882a920f137543585175db9957bf48223f3.zip
cpython-961c2882a920f137543585175db9957bf48223f3.tar.gz
cpython-961c2882a920f137543585175db9957bf48223f3.tar.bz2
document the exceptions raised by sgmllib, htmllib, and HTMLParser
Diffstat (limited to 'Doc/lib/libsgmllib.tex')
-rw-r--r--Doc/lib/libsgmllib.tex12
1 files changed, 10 insertions, 2 deletions
diff --git a/Doc/lib/libsgmllib.tex b/Doc/lib/libsgmllib.tex
index 3699d24..27bf0b0 100644
--- a/Doc/lib/libsgmllib.tex
+++ b/Doc/lib/libsgmllib.tex
@@ -14,7 +14,6 @@ only exists as a base for the \refmodule{htmllib} module. Another
HTML parser which supports XHTML and offers a somewhat different
interface is available in the \refmodule{HTMLParser} module.
-
\begin{classdesc}{SGMLParser}{}
The \class{SGMLParser} class is instantiated without arguments.
The parser is hardcoded to recognize the following
@@ -40,7 +39,16 @@ spaces, tabs, and newlines are allowed between the trailing
\end{itemize}
\end{classdesc}
-\class{SGMLParser} instances have the following interface methods:
+A single exception is defined as well:
+
+\begin{excdesc}{SGMLParseError}
+Exception raised by the \class{SGMLParser} class when it encounters an
+error while parsing.
+\versionadded{2.1}
+\end{excdesc}
+
+
+\class{SGMLParser} instances have the following methods:
\begin{methoddesc}{reset}{}