r58272 - python/trunk/Lib/logging/__init__.py
Author: vinay.sajip Date: Thu Sep 27 09:35:10 2007 New Revision: 58272 Modified: python/trunk/Lib/logging/__init__.py Log: Change to LogRecord.__init__() to fix #1206. Note that archaic use of type(x) == types.DictType is because of keeping 1.5.2 compatibility. While this is much less relevant these days, there probably needs to be a separate commit for removing all archaic constructs at the same time. Modified: python/trunk/Lib/logging/__init__.py ============================================================================== --- python/trunk/Lib/logging/__init__.py (original) +++ python/trunk/Lib/logging/__init__.py Thu Sep 27 09:35:10 2007 @@ -234,7 +234,9 @@ # 'Value is %d' instead of 'Value is 0'. # For the use case of passing a dictionary, this should not be a # problem. - if args and (len(args) == 1) and args[0] and (type(args[0]) == types.DictType): + if args and len(args) == 1 and ( + type(args[0]) == types.DictType + ) and args[0]: args = args[0] self.args = args self.levelname = getLevelName(level)
participants (1)
-
vinay.sajip