mirror of https://github.com/python/cpython
logging: NullHandler optimisation.
This commit is contained in:
parent
cb61e5d9b5
commit
639f0e24de
|
@ -1656,9 +1656,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…
Reference in New Issue