From 4fbe4b340a9c2c7c286cd871070f1782fd92a7b8 Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Sun, 26 Sep 2010 11:04:10 +0000 Subject: logging: NullHandler optimisation. --- Lib/logging/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v0.12