[Python-checkins] cpython (3.2): Mention logging.captureWarnings in the warnings module doc.
antoine.pitrou
python-checkins at python.org
Sat Jul 9 21:32:27 CEST 2011
http://hg.python.org/cpython/rev/0b922abbcaf7
changeset: 71291:0b922abbcaf7
branch: 3.2
parent: 71287:fc8b5c6a021c
user: Antoine Pitrou <solipsis at pitrou.net>
date: Sat Jul 09 21:29:36 2011 +0200
summary:
Mention logging.captureWarnings in the warnings module doc.
files:
Doc/library/warnings.rst | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Doc/library/warnings.rst b/Doc/library/warnings.rst
--- a/Doc/library/warnings.rst
+++ b/Doc/library/warnings.rst
@@ -40,6 +40,10 @@
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:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list