From: Neal Norwitz Date: Wed, 23 Apr 2003 13:12:19 +0000 (+0000) Subject: Fix SF bug #723801, logging.setLoggerClass() doesn't support new-style classes X-Git-Tag: v2.3c1~1067 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a256f7d36f0fda36f7ff02cd0c6a5d43990f9572;p=python Fix SF bug #723801, logging.setLoggerClass() doesn't support new-style classes --- diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index 1967ba3dad..9d6aa92ec6 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -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__