From: Jason R. Coombs Date: Wed, 7 Mar 2012 15:24:04 +0000 (-0500) Subject: Use PEP-8 style in logging example X-Git-Tag: v2.7.4rc1~992 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d6a80ee2c76bbeceaa49650dc3b2455bbc655b2f;p=thirdparty%2FPython%2Fcpython.git Use PEP-8 style in logging example --- diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index f91d4845c112..665485d66045 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -138,7 +138,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)