Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(6)

Unified Diff: Doc/library/warnings.rst

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Doc/library/urllib.request.rst ('k') | Doc/library/xdrlib.rst » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Doc/library/warnings.rst Tue Jul 26 09:37:46 2011 +0300
+++ b/Doc/library/warnings.rst Mon Jul 25 09:47:18 2011 -0400
@@ -40,10 +40,6 @@
message by calling :func:`formatwarning`, which is also available for use by
custom implementations.
-.. seealso::
- :func:`logging.captureWarnings` allows you to handle all warnings with
- the standard logging infrastructure.
-
.. _warning-categories:
@@ -339,7 +335,8 @@
Write a warning to a file. The default implementation calls
``formatwarning(message, category, filename, lineno, line)`` and writes the
resulting string to *file*, which defaults to ``sys.stderr``. You may replace
- this function with any callable by assigning to ``warnings.showwarning``.
+ this function with an alternative implementation by assigning to
+ ``warnings.showwarning``.
*line* is a line of source code to be included in the warning
message; if *line* is not supplied, :func:`showwarning` will
try to read the line specified by *filename* and *lineno*.
« no previous file with comments | « Doc/library/urllib.request.rst ('k') | Doc/library/xdrlib.rst » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+