mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
Removed out-of-date comment in _install_handlers and
used issubclass in place of equality comparison of classes.
This commit is contained in:
parent
b7b8bff532
commit
5ff7171ddc
1 changed files with 1 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue