[Python-checkins] cpython (2.7): Avoid relying on the default reST role in logging library doc

eric.araujo python-checkins at python.org
Sun Feb 26 03:49:15 CET 2012


http://hg.python.org/cpython/rev/f9089a5fa14b
changeset: 75273:f9089a5fa14b
branch: 2.7
user: Éric Araujo <merwok at netwok.org>
date: Sun Feb 26 01:36:31 2012 +0100
summary:
 Avoid relying on the default reST role in logging library doc
files:
 Doc/library/logging.rst | 5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -915,12 +915,11 @@
 If *capture* is ``True``, warnings issued by the :mod:`warnings` module will
 be redirected to the logging system. Specifically, a warning will be
 formatted using :func:`warnings.formatwarning` and the resulting string
- logged to a logger named 'py.warnings' with a severity of `WARNING`.
+ logged to a logger named ``'py.warnings'`` with a severity of :const:`WARNING`.
 
 If *capture* is ``False``, the redirection of warnings to the logging system
 will stop, and warnings will be redirected to their original destinations
- (i.e. those in effect before `captureWarnings(True)` was called).
-
+ (i.e. those in effect before ``captureWarnings(True)`` was called).
 
 
 .. seealso::
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /