summaryrefslogtreecommitdiffstats
path: root/Lib/logging
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2010-09-26 11:04:10 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2010-09-26 11:04:10 (GMT)
commit639f0e24def57a272006abb14f878b539338213a (patch)
tree7d56ca3303bf04dbe497de0d5e47bcce83a2c314 /Lib/logging
parentcb61e5d9b59c1a5f18dd34edebb054d1e19f1581 (diff)
downloadcpython-639f0e24def57a272006abb14f878b539338213a.zip
cpython-639f0e24def57a272006abb14f878b539338213a.tar.gz
cpython-639f0e24def57a272006abb14f878b539338213a.tar.bz2
logging: NullHandler optimisation.
Diffstat (limited to 'Lib/logging')
-rw-r--r--Lib/logging/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index e1dbbc0..6baf9b4 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