diff options
-rw-r--r-- | Lib/logging/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index 9299b8f..db41cb3 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -234,7 +234,9 @@ 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] 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) |