[Python-checkins] python/dist/src/Lib/logging __init__.py, 1.23, 1.24

vsajip at users.sourceforge.net vsajip at users.sourceforge.net
Thu Oct 21 23:24:30 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib/logging
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4738
Modified Files:
	__init__.py 
Log Message:
Fixed bug in handling of args in LogRecord.__init__.
Index: __init__.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/logging/__init__.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- __init__.py	20 Oct 2004 08:39:40 -0000	1.23
+++ __init__.py	21 Oct 2004 21:24:27 -0000	1.24
@@ -204,7 +204,7 @@
 # '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)


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /