From: Vinay Sajip Date: Sun, 29 Jun 2008 21:25:28 +0000 (+0000) Subject: Removed out-of-date comment in _install_handlers and X-Git-Tag: v2.6b2~144 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5ff7171ddc70842d69943d1cb0773fc10462936c;p=thirdparty%2FPython%2Fcpython.git Removed out-of-date comment in _install_handlers and used issubclass in place of equality comparison of classes. --- diff --git a/Lib/logging/config.py b/Lib/logging/config.py index 822b283623f4..50bacdb3e48b 100644 --- a/Lib/logging/config.py +++ b/Lib/logging/config.py @@ -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: