summaryrefslogtreecommitdiff
path: root/Lib/logging
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2004-10-21 21:24:27 +0000
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2004-10-21 21:24:27 +0000
commitdccd4321a70c05b94b2efff28b416df440262cb8 (patch)
treed424b3a159544978faf8a390c1ac9a9f7368066c /Lib/logging
parentc19ccc9f1137bceb830a635a199b0798cc6d3932 (diff)
downloadcpython-git-dccd4321a70c05b94b2efff28b416df440262cb8.tar.gz
Fixed bug in handling of args in LogRecord.__init__.
Diffstat (limited to 'Lib/logging')
-rw-r--r--Lib/logging/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index 579c2c449e..f0dec045d0 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)