diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2008-06-29 21:25:28 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2008-06-29 21:25:28 (GMT) |
commit | 5ff7171ddc70842d69943d1cb0773fc10462936c (patch) | |
tree | 4440d8e8fa6accb90d94e04519af7cb14bca8ba7 /Lib/logging | |
parent | b7b8bff532d6bc4f09199660a41d0400a9776107 (diff) | |
download | cpython-5ff7171ddc70842d69943d1cb0773fc10462936c.zip cpython-5ff7171ddc70842d69943d1cb0773fc10462936c.tar.gz cpython-5ff7171ddc70842d69943d1cb0773fc10462936c.tar.bz2 |
Removed out-of-date comment in _install_handlers and
used issubclass in place of equality comparison of classes.
Diffstat (limited to 'Lib/logging')
-rw-r--r-- | Lib/logging/config.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/logging/config.py b/Lib/logging/config.py index 822b283..50bacdb 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: |