Skip to content

Commit e6470c8

Browse files
committed
Minor changes
1 parent aee112f commit e6470c8

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

Doc/library/logging.rst

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,10 +1151,9 @@ functions.
11511151
| | using the specified filename, rather than a |
11521152
| | StreamHandler. |
11531153
+--------------+---------------------------------------------+
1154-
| ``filemode`` | Specifies the :ref:`mode <filemodes>` to |
1155-
| | open the file, if |
1156-
| | filename is specified. Defaults to |
1157-
| | ``'a'``. |
1154+
| ``filemode`` | If ``filename`` is specified, use this |
1155+
| | in this :ref:`mode <filemodes>`. Defaults |
1156+
| | to ``'a'``. |
11581157
+--------------+---------------------------------------------+
11591158
| ``format`` | Use the specified format string for the |
11601159
| | handler. |
@@ -1163,29 +1162,29 @@ functions.
11631162
| | style date/time format. |
11641163
+--------------+---------------------------------------------+
11651164
| ``style`` | If ``format`` is specified, use this style |
1166-
| | for the format string. One of '%', '{' or |
1167-
| | '$' for :ref:`printf-style |
1165+
| | for the format string. One of ``'%'``, |
1166+
| | ``'{'`` or ``'$'`` for :ref:`printf-style |
11681167
| | <old-string-formatting>`, |
11691168
| | :meth:`str.format` or |
1170-
| | :class:`string.Template` respectively, and |
1171-
| | defaulting to '%' if not specified. |
1169+
| | :class:`string.Template` respectively. |
1170+
| | Defaults to ``'%'`` |
11721171
+--------------+---------------------------------------------+
11731172
| ``level`` | Set the root logger level to the specified |
11741173
| | :ref:`level <levels>`. |
11751174
+--------------+---------------------------------------------+
11761175
| ``stream`` | Use the specified stream to initialize the |
11771176
| | StreamHandler. Note that this argument is |
1178-
| | incompatible with 'filename' - if both are |
1179-
| | present, a ``ValueError`` is raised. |
1177+
| | incompatible with ``filename`` - if both |
1178+
| | are present, a ``ValueError`` is raised. |
11801179
+--------------+---------------------------------------------+
11811180
| ``handlers`` | If specified, this should be an iterable of |
11821181
| | already created handlers to add to the root |
11831182
| | logger. Any handlers which don't already |
11841183
| | have a formatter set will be assigned the |
11851184
| | default formatter created in this function. |
11861185
| | Note that this argument is incompatible |
1187-
| | with 'filename' or 'stream' - if both are |
1188-
| | present, a ``ValueError`` is raised. |
1186+
| | with ``filename`` or ``stream`` - if both |
1187+
| | are present, a ``ValueError`` is raised. |
11891188
+--------------+---------------------------------------------+
11901189

11911190
.. versionchanged:: 3.2

0 commit comments

Comments
 (0)