mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Fix SF bug #723801, logging.setLoggerClass() doesn't support new-style classes
This commit is contained in:
parent
f471d4783a
commit
a256f7d36f
1 changed files with 0 additions and 2 deletions
|
@ -725,8 +725,6 @@ def setLoggerClass(klass):
|
|||
__init__() should call Logger.__init__()
|
||||
"""
|
||||
if klass != Logger:
|
||||
if type(klass) != types.ClassType:
|
||||
raise TypeError, "setLoggerClass is expecting a class"
|
||||
if not issubclass(klass, Logger):
|
||||
raise TypeError, "logger not derived from logging.Logger: " + \
|
||||
klass.__name__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue