[Python-checkins] cpython (2.7): Use PEP-8 style in logging example

jason.coombs python-checkins at python.org
Wed Mar 7 16:27:24 CET 2012


http://hg.python.org/cpython/rev/1e3c18c923ca
changeset:   75466:1e3c18c923ca
branch:      2.7
parent:      75460:1112c2f602b3
user:        Jason R. Coombs <jaraco at jaraco.com>
date:        Wed Mar 07 10:24:04 2012 -0500
summary:
  Use PEP-8 style in logging example

files:
  Doc/library/logging.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -138,7 +138,7 @@
 
       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)
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list