summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-12-25 06:19:08 (GMT)
committerFred Drake <fdrake@acm.org>2000-12-25 06:19:08 (GMT)
commit1dea760ca1f08b4290b06155e3ded977a2c0ad0f (patch)
treed2cd321a5b5bff058293f15513a56e9c9d3d2819 /Doc
parentf08cbb1771f7c9ddd45638c584d0f7c82c54f593 (diff)
downloadcpython-1dea760ca1f08b4290b06155e3ded977a2c0ad0f.zip
cpython-1dea760ca1f08b4290b06155e3ded977a2c0ad0f.tar.gz
cpython-1dea760ca1f08b4290b06155e3ded977a2c0ad0f.tar.bz2
Make sure subsections are formatted into HTML pages with reasonable names.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libwarnings.tex9
1 files changed, 5 insertions, 4 deletions
diff --git a/Doc/lib/libwarnings.tex b/Doc/lib/libwarnings.tex
index 0949900..218c860 100644
--- a/Doc/lib/libwarnings.tex
+++ b/Doc/lib/libwarnings.tex
@@ -43,7 +43,7 @@ implementation of this function formats the message by calling
implementations.
-\subsection{Warning Categories}
+\subsection{Warning Categories \label{warning-categories}}
There are a number of built-in exceptions that represent warning
categories. This categorization is useful to be able to filter out
@@ -76,7 +76,7 @@ of the standard warning categories. A warning category must always be
a subclass of the \exception{Warning} class.
-\subsection{The Warnings Filter}
+\subsection{The Warnings Filter \label{warning-filter}}
The warnings filter controls whether warnings are ignored, displayed,
or turned into errors (raising an exception).
@@ -138,7 +138,7 @@ it is first imported (invalid options are ignored, after printing a
message to \code{sys.stderr}).
-\subsection{Available Functions}
+\subsection{Available Functions \label{warning-functions}}
\begin{funcdesc}{warn}{message\optional{, category\optional{, stacklevel}}}
Issue a warning, or maybe ignore it or raise an exception. The
@@ -175,7 +175,8 @@ contain embedded newlines and ends in a newline.
\end{funcdesc}
\begin{funcdesc}{filterwarnings}{action\optional{,
-message\optional{, category\optional{, module\optional{, lineno}}}}}
+ message\optional{, category\optional{,
+ module\optional{, lineno}}}}}
Insert an entry into the list of warnings filters (at the front).
This checks the types of the arguments, compiles the message and
module regular expressions, and inserts them as a tuple in front