diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2003-04-23 13:12:19 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2003-04-23 13:12:19 (GMT) |
commit | a256f7d36f0fda36f7ff02cd0c6a5d43990f9572 (patch) | |
tree | 39fb405f1ee02cedd1a468a79d934c4f4e35a852 /Lib/logging | |
parent | f471d4783a54362c730fcd7e38ffb1d74af76f7a (diff) | |
download | cpython-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__.py | 2 |
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__ |