From dccd4321a70c05b94b2efff28b416df440262cb8 Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Thu, 21 Oct 2004 21:24:27 +0000 Subject: Fixed bug in handling of args in LogRecord.__init__. --- Lib/logging/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index 579c2c4..f0dec04 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -204,7 +204,7 @@ class LogRecord: # '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]: + if args and (len(args) == 1) and args[0] and (type(args[0]) == types.DictType): args = args[0] self.args = args self.levelname = getLevelName(level) -- cgit v0.12