mirror of https://github.com/python/cpython
Tidied up name of parameter in StreamHandler
This commit is contained in:
parent
9aac2455ab
commit
4780c9a0e0
|
@ -1681,9 +1681,9 @@ file-like object (or, more precisely, any object which supports :meth:`write`
|
||||||
and :meth:`flush` methods).
|
and :meth:`flush` methods).
|
||||||
|
|
||||||
|
|
||||||
.. class:: StreamHandler([strm])
|
.. class:: StreamHandler([stream])
|
||||||
|
|
||||||
Returns a new instance of the :class:`StreamHandler` class. If *strm* is
|
Returns a new instance of the :class:`StreamHandler` class. If *stream* is
|
||||||
specified, the instance will use it for logging output; otherwise, *sys.stderr*
|
specified, the instance will use it for logging output; otherwise, *sys.stderr*
|
||||||
will be used.
|
will be used.
|
||||||
|
|
||||||
|
|
|
@ -745,16 +745,16 @@ class StreamHandler(Handler):
|
||||||
sys.stdout or sys.stderr may be used.
|
sys.stdout or sys.stderr may be used.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, strm=None):
|
def __init__(self, stream=None):
|
||||||
"""
|
"""
|
||||||
Initialize the handler.
|
Initialize the handler.
|
||||||
|
|
||||||
If strm is not specified, sys.stderr is used.
|
If stream is not specified, sys.stderr is used.
|
||||||
"""
|
"""
|
||||||
Handler.__init__(self)
|
Handler.__init__(self)
|
||||||
if strm is None:
|
if stream is None:
|
||||||
strm = sys.stderr
|
stream = sys.stderr
|
||||||
self.stream = strm
|
self.stream = stream
|
||||||
|
|
||||||
def flush(self):
|
def flush(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue