diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 097927837d8..c2c6a6fc773 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)