Commit a256f7d3 authored by Neal Norwitz's avatar Neal Norwitz

Fix SF bug #723801, logging.setLoggerClass() doesn't support new-style classes

parent f471d478
......@@ -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__
......
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