From 4ffb7ff3d8c700ff22160108b192a98d15e31a40 Mon Sep 17 00:00:00 2001 From: Michael Dunn Date: Tue, 10 Feb 2015 17:15:18 -0500 Subject: [PATCH 1/3] Update logging.rst The PEP referenced for configuring logging via - '319' should be '391'. Just a simple fix. --- docs/writing/logging.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/writing/logging.rst b/docs/writing/logging.rst index 4a36edbb0..c280e8570 100644 --- a/docs/writing/logging.rst +++ b/docs/writing/logging.rst @@ -146,7 +146,7 @@ Example Configuration via a Dictionary ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ As of Python 2.7, you can use a dictionary with configuration details. -:pep:`319` contains a list of the mandatory and optional elements in +:pep:`391` contains a list of the mandatory and optional elements in the configuration dictionary. .. code-block:: python From 86d29a3c773ba1d6a344ea18d157a6d2c7f75051 Mon Sep 17 00:00:00 2001 From: Michael Dunn Date: Tue, 10 Feb 2015 18:16:14 -0500 Subject: [PATCH 2/3] Update logging.rst The name of a dictionary key `root` was not properly enclosed in quotes, which results in a syntax error when people copy this code. Thanks! --- docs/writing/logging.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/writing/logging.rst b/docs/writing/logging.rst index c280e8570..46a4f341f 100644 --- a/docs/writing/logging.rst +++ b/docs/writing/logging.rst @@ -166,7 +166,7 @@ the configuration dictionary. 'level': logging.DEBUG} }, loggers = { - root : {'handlers': ['h'], + 'root' : {'handlers': ['h'], 'level': logging.DEBUG} } ) From 2b15ec8af2cc0965a89dc91c121212737793041d Mon Sep 17 00:00:00 2001 From: Michael Dunn Date: Tue, 10 Feb 2015 21:06:36 -0500 Subject: [PATCH 3/3] Update logging.rst Removed whitespace in violation of PEP 8 and aligned lines. --- docs/writing/logging.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/writing/logging.rst b/docs/writing/logging.rst index 46a4f341f..7032ea0e2 100644 --- a/docs/writing/logging.rst +++ b/docs/writing/logging.rst @@ -166,8 +166,8 @@ the configuration dictionary. 'level': logging.DEBUG} }, loggers = { - 'root' : {'handlers': ['h'], - 'level': logging.DEBUG} + 'root': {'handlers': ['h'], + 'level': logging.DEBUG} } )