From: Vinay Sajip Date: Sun, 26 Sep 2010 11:04:10 +0000 (+0000) Subject: logging: NullHandler optimisation. X-Git-Tag: v2.7.1rc1~238 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=639f0e24def57a272006abb14f878b539338213a;p=thirdparty%2FPython%2Fcpython.git logging: NullHandler optimisation. --- diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index e1dbbc03aa7c..6baf9b4f8f0f 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -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