Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4780c9a0
Commit
4780c9a0
authored
Sep 26, 2009
by
Vinay Sajip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tidied up name of parameter in StreamHandler
parent
9aac2455
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
Doc/library/logging.rst
Doc/library/logging.rst
+2
-2
Lib/logging/__init__.py
Lib/logging/__init__.py
+5
-5
No files found.
Doc/library/logging.rst
View file @
4780c9a0
...
...
@@ -1681,9 +1681,9 @@ file-like object (or, more precisely, any object which supports :meth:`write`
and :meth:`flush` methods).
.. class:: StreamHandler([strm])
.. class:: StreamHandler([str
ea
m])
Returns a new instance of the :class:`StreamHandler` class. If *strm* is
Returns a new instance of the :class:`StreamHandler` class. If *str
ea
m* is
specified, the instance will use it for logging output; otherwise, *sys.stderr*
will be used.
...
...
Lib/logging/__init__.py
View file @
4780c9a0
...
...
@@ -745,16 +745,16 @@ class StreamHandler(Handler):
sys.stdout or sys.stderr may be used.
"""
def
__init__
(
self
,
strm
=
None
):
def
__init__
(
self
,
str
ea
m
=
None
):
"""
Initialize the handler.
If strm is not specified, sys.stderr is used.
If str
ea
m is not specified, sys.stderr is used.
"""
Handler
.
__init__
(
self
)
if
strm
is
None
:
strm
=
sys
.
stderr
self
.
stream
=
strm
if
str
ea
m
is
None
:
str
ea
m
=
sys
.
stderr
self
.
stream
=
str
ea
m
def
flush
(
self
):
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment