]> granicus.if.org Git - python/commitdiff
Removed out-of-date comment in _install_handlers and
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Sun, 29 Jun 2008 21:25:28 +0000 (21:25 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Sun, 29 Jun 2008 21:25:28 +0000 (21:25 +0000)
used issubclass in place of equality comparison of classes.

Lib/logging/config.py

index 822b283623f44ceff3f4442c80849667dd89e978..50bacdb3e48bccf55ff6cccf80e2b13ec92d9735 100644 (file)
@@ -155,8 +155,7 @@ def _install_handlers(cp, formatters):
             h.setLevel(logging._levelNames[level])
         if len(fmt):
             h.setFormatter(formatters[fmt])
-        #temporary hack for FileHandler and MemoryHandler.
-        if klass == logging.handlers.MemoryHandler:
+        if issubclass(klass, logging.handlers.MemoryHandler):
             if "target" in opts:
                 target = cp.get(sectname,"target")
             else: