mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
logging: NullHandler optimisation.
This commit is contained in:
parent
a305ca786c
commit
4fbe4b340a
1 changed files with 6 additions and 0 deletions
|
|
@ -1652,9 +1652,15 @@ class NullHandler(Handler):
|
|||
a NullHandler and add it to the top-level logger of the library module or
|
||||
package.
|
||||
"""
|
||||
def handle(self, record):
|
||||
pass
|
||||
|
||||
def emit(self, record):
|
||||
pass
|
||||
|
||||
def createLock(self):
|
||||
self.lock = None
|
||||
|
||||
# Warnings integration
|
||||
|
||||
_warnings_showwarning = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue