diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2010-09-26 11:04:10 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2010-09-26 11:04:10 (GMT) |
commit | 4fbe4b340a9c2c7c286cd871070f1782fd92a7b8 (patch) | |
tree | 1feafa5ff191de1a0ca1d2d32f2108ed145b7174 /Lib/logging | |
parent | a305ca786c565ba468ae00a51a1717ea2e25b50d (diff) | |
download | cpython-4fbe4b340a9c2c7c286cd871070f1782fd92a7b8.zip cpython-4fbe4b340a9c2c7c286cd871070f1782fd92a7b8.tar.gz cpython-4fbe4b340a9c2c7c286cd871070f1782fd92a7b8.tar.bz2 |
logging: NullHandler optimisation.
Diffstat (limited to 'Lib/logging')
-rw-r--r-- | Lib/logging/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index 79ec9ef..4d9590b 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -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 |