File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ and :meth:`flush` methods).
48
48
.. method :: emit(record)
49
49
50
50
If a formatter is specified, it is used to format the record. The record
51
- is then written to the stream with a terminator. If exception information
51
+ is then written to the stream followed by :attr: ` terminator ` . If exception information
52
52
is present, it is formatted using :func: `traceback.print_exception ` and
53
53
appended to the stream.
54
54
@@ -70,13 +70,17 @@ and :meth:`flush` methods).
70
70
71
71
.. versionadded :: 3.7
72
72
73
+ .. attribute :: terminator
73
74
74
- .. versionchanged :: 3.2
75
- The ``StreamHandler `` class now has a ``terminator `` attribute, default
76
- value ``'\n' ``, which is used as the terminator when writing a formatted
77
- record to a stream. If you don't want this newline termination, you can
78
- set the handler instance's ``terminator `` attribute to the empty string.
79
- In earlier versions, the terminator was hardcoded as ``'\n' ``.
75
+ String used as the terminator when writing a formatted record to a stream.
76
+ Default value is ``'\n' ``.
77
+
78
+ If you don't want a newline termination, you can set the handler instance's
79
+ ``terminator `` attribute to the empty string.
80
+
81
+ In earlier versions, the terminator was hardcoded as ``'\n' ``.
82
+
83
+ .. versionadded :: 3.2
80
84
81
85
82
86
.. _file-handler :
You can’t perform that action at this time.
0 commit comments