]> granicus.if.org Git - python/commitdiff
Fix markup.
authorGeorg Brandl <georg@python.org>
Tue, 14 Jun 2011 19:09:55 +0000 (21:09 +0200)
committerGeorg Brandl <georg@python.org>
Tue, 14 Jun 2011 19:09:55 +0000 (21:09 +0200)
Doc/library/logging.rst

index 50704876b2c6ef896dd3dd4330be08b72c9cdeb7..68cfa6ed790414b1483e52475608a3a03142529e 100644 (file)
@@ -462,17 +462,17 @@ The useful mapping keys in a :class:`LogRecord` are given in the section on
       attribute in the ``Formatter`` class.
 
       .. versionchanged:: 3.3
-      Previously, the default ISO 8601 format was hard-coded as in this
-      example: ``2010-09-06 22:38:15,292`` where the part before the comma is
-      handled by a strptime format string (``'%Y-%m-%d %H:%M:%S'``), and the
-      part after the comma is a millisecond value. Because strptime does not
-      have a format placeholder for milliseconds, the millisecond value is
-      appended using another format string, ``'%s,%03d'`` – and both of these
-      format strings have been hardcoded into this method. With the change,
-      these strings are defined as class-level attributes which can be
-      overridden at the instance level when desired. The names of the
-      attributes are ``default_time_format`` (for the strptime format string)
-      and ``default_msec_format`` (for appending the millisecond value).
+         Previously, the default ISO 8601 format was hard-coded as in this
+         example: ``2010-09-06 22:38:15,292`` where the part before the comma is
+         handled by a strptime format string (``'%Y-%m-%d %H:%M:%S'``), and the
+         part after the comma is a millisecond value. Because strptime does not
+         have a format placeholder for milliseconds, the millisecond value is
+         appended using another format string, ``'%s,%03d'`` – and both of these
+         format strings have been hardcoded into this method. With the change,
+         these strings are defined as class-level attributes which can be
+         overridden at the instance level when desired. The names of the
+         attributes are ``default_time_format`` (for the strptime format string)
+         and ``default_msec_format`` (for appending the millisecond value).
 
    .. method:: formatException(exc_info)