]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use PEP-8 style in logging example
authorJason R. Coombs <jaraco@jaraco.com>
Wed, 7 Mar 2012 15:26:08 +0000 (10:26 -0500)
committerJason R. Coombs <jaraco@jaraco.com>
Wed, 7 Mar 2012 15:26:08 +0000 (10:26 -0500)
Doc/library/logging.rst

index 26fa97e5d09284d1dfa9eebe1ae8c69052376fcc..1005b7975b14403c756260d19ff7de49b1683495 100644 (file)
@@ -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)