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
4fbe4b34
Commit
4fbe4b34
authored
Sep 26, 2010
by
Vinay Sajip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logging: NullHandler optimisation.
parent
a305ca78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
Lib/logging/__init__.py
Lib/logging/__init__.py
+6
-0
No files found.
Lib/logging/__init__.py
View file @
4fbe4b34
...
@@ -1652,9 +1652,15 @@ class NullHandler(Handler):
...
@@ -1652,9 +1652,15 @@ class NullHandler(Handler):
a NullHandler and add it to the top-level logger of the library module or
a NullHandler and add it to the top-level logger of the library module or
package.
package.
"""
"""
def
handle
(
self
,
record
):
pass
def
emit
(
self
,
record
):
def
emit
(
self
,
record
):
pass
pass
def
createLock
(
self
):
self
.
lock
=
None
# Warnings integration
# Warnings integration
_warnings_showwarning
=
None
_warnings_showwarning
=
None
...
...
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