diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2004-10-21 21:24:27 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2004-10-21 21:24:27 (GMT) |
commit | dccd4321a70c05b94b2efff28b416df440262cb8 (patch) | |
tree | d424b3a159544978faf8a390c1ac9a9f7368066c /Lib | |
parent | c19ccc9f1137bceb830a635a199b0798cc6d3932 (diff) | |
download | cpython-dccd4321a70c05b94b2efff28b416df440262cb8.zip cpython-dccd4321a70c05b94b2efff28b416df440262cb8.tar.gz cpython-dccd4321a70c05b94b2efff28b416df440262cb8.tar.bz2 |
Fixed bug in handling of args in LogRecord.__init__.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/logging/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |