summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2012-03-07 15:27:07 (GMT)
committerJason R. Coombs <jaraco@jaraco.com>2012-03-07 15:27:07 (GMT)
commit8a56085b5171050fb85f0bd845e4de3cec7a15bb (patch)
tree47420323fed2c8126624285938ba7a512c3efa78 /Doc
parentd6c4340f778c8c25efdcae6bde494dbef474ba91 (diff)
parent30b8e5461d4d913365ae4151616089107ec9cfac (diff)
downloadcpython-8a56085b5171050fb85f0bd845e4de3cec7a15bb.zip
cpython-8a56085b5171050fb85f0bd845e4de3cec7a15bb.tar.gz
cpython-8a56085b5171050fb85f0bd845e4de3cec7a15bb.tar.bz2
Merge: Use PEP-8 style in logging example
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/logging.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index 0979278..c2c6a6f 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)