summaryrefslogtreecommitdiffstats
path: root/Lib/logging
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2003-04-23 13:12:19 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2003-04-23 13:12:19 (GMT)
commita256f7d36f0fda36f7ff02cd0c6a5d43990f9572 (patch)
tree39fb405f1ee02cedd1a468a79d934c4f4e35a852 /Lib/logging
parentf471d4783a54362c730fcd7e38ffb1d74af76f7a (diff)
downloadcpython-a256f7d36f0fda36f7ff02cd0c6a5d43990f9572.zip
cpython-a256f7d36f0fda36f7ff02cd0c6a5d43990f9572.tar.gz
cpython-a256f7d36f0fda36f7ff02cd0c6a5d43990f9572.tar.bz2
Fix SF bug #723801, logging.setLoggerClass() doesn't support new-style classes
Diffstat (limited to 'Lib/logging')
-rw-r--r--Lib/logging/__init__.py2
1 files changed, 0 insertions, 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__