From a256f7d36f0fda36f7ff02cd0c6a5d43990f9572 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Wed, 23 Apr 2003 13:12:19 +0000 Subject: Fix SF bug #723801, logging.setLoggerClass() doesn't support new-style classes --- Lib/logging/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index 1967ba3..9d6aa92 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__ -- cgit v0.12