Commit 5ff7171d authored by Vinay Sajip's avatar Vinay Sajip

Removed out-of-date comment in _install_handlers and

used issubclass in place of equality comparison of classes.
parent b7b8bff5
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment