]> granicus.if.org Git - python/commitdiff
Bug #1713535: typo in logging example.
authorGeorg Brandl <georg@python.org>
Sat, 5 May 2007 18:55:37 +0000 (18:55 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 5 May 2007 18:55:37 +0000 (18:55 +0000)
Doc/lib/liblogging.tex

index 58595f7c1529f17c919a20c774c402eecca9808e..5783cbf44ec7d2b40189cf3d618c302450fc7172 100644 (file)
@@ -203,7 +203,7 @@ logged messages. For example:
 \begin{verbatim}
  FORMAT = "%(asctime)-15s %(clientip)s %(user)-8s %(message)s"
  logging.basicConfig(format=FORMAT)
- dict = { 'clientip' : '192.168.0.1', 'user' : 'fbloggs' }
+ d = {'clientip': '192.168.0.1', 'user': 'fbloggs'}
  logging.warning("Protocol problem: %s", "connection reset", extra=d)
 \end{verbatim}