From 30b8e5461d4d913365ae4151616089107ec9cfac Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Wed, 7 Mar 2012 10:26:08 -0500 Subject: [PATCH] Use PEP-8 style in logging example --- Doc/library/logging.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 26fa97e5d09..1005b7975b1 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -159,7 +159,7 @@ instantiated directly, but always through the module-level function FORMAT = '%(asctime)-15s %(clientip)s %(user)-8s %(message)s' logging.basicConfig(format=FORMAT) - d = { 'clientip' : '192.168.0.1', 'user' : 'fbloggs' } + d = {'clientip': '192.168.0.1', 'user': 'fbloggs'} logger = logging.getLogger('tcpserver') logger.warning('Protocol problem: %s', 'connection reset', extra=d)