Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8a56085

Browse files
committed
Merge: Use PEP-8 style in logging example
2 parents d6c4340 + 30b8e54 commit 8a56085

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/logging.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ instantiated directly, but always through the module-level function
159159

160160
FORMAT = '%(asctime)-15s %(clientip)s %(user)-8s %(message)s'
161161
logging.basicConfig(format=FORMAT)
162-
d = { 'clientip' : '192.168.0.1', 'user' : 'fbloggs' }
162+
d = {'clientip': '192.168.0.1', 'user': 'fbloggs'}
163163
logger = logging.getLogger('tcpserver')
164164
logger.warning('Protocol problem: %s', 'connection reset', extra=d)
165165

0 commit comments

Comments
 (0)