]> granicus.if.org Git - python/commitdiff
Fix SF bug #723801, logging.setLoggerClass() doesn't support new-style classes
authorNeal Norwitz <nnorwitz@gmail.com>
Wed, 23 Apr 2003 13:12:19 +0000 (13:12 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Wed, 23 Apr 2003 13:12:19 +0000 (13:12 +0000)
Lib/logging/__init__.py

index 1967ba3dad12cb5d6123d9890f89268b7a827070..9d6aa92ec618328304aeedf7ae2dfed1dbbbcc82 100644 (file)
@@ -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__