mirror of
https://github.com/python/cpython.git
synced 2025-07-30 14:44:10 +00:00
Tidied up name of parameter in StreamHandler
This commit is contained in:
parent
9aac2455ab
commit
4780c9a0e0
2 changed files with 7 additions and 7 deletions
|
@ -745,16 +745,16 @@ class StreamHandler(Handler):
|
|||
sys.stdout or sys.stderr may be used.
|
||||
"""
|
||||
|
||||
def __init__(self, strm=None):
|
||||
def __init__(self, stream=None):
|
||||
"""
|
||||
Initialize the handler.
|
||||
|
||||
If strm is not specified, sys.stderr is used.
|
||||
If stream is not specified, sys.stderr is used.
|
||||
"""
|
||||
Handler.__init__(self)
|
||||
if strm is None:
|
||||
strm = sys.stderr
|
||||
self.stream = strm
|
||||
if stream is None:
|
||||
stream = sys.stderr
|
||||
self.stream = stream
|
||||
|
||||
def flush(self):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue