summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2012-03-07 15:26:08 (GMT)
committerJason R. Coombs <jaraco@jaraco.com>2012-03-07 15:26:08 (GMT)
commit30b8e5461d4d913365ae4151616089107ec9cfac (patch)
tree385f3d42f3b1f3640c3b68315c9ad5fd2102713c /Doc
parentc3705d3ac4247b3ac5aac42fa0ed39eb490f9b11 (diff)
downloadcpython-30b8e5461d4d913365ae4151616089107ec9cfac.zip
cpython-30b8e5461d4d913365ae4151616089107ec9cfac.tar.gz
cpython-30b8e5461d4d913365ae4151616089107ec9cfac.tar.bz2
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 26fa97e..1005b79 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)