New submission from Oleg Broytmann:
See the thread in the python-dev mailing list:
http://mail.python.org/pipermail/python-dev/2007-September/074732.html
----------
components: Library (Lib)
files: __init__.py.patch
messages: 56145
nosy: phd
severity: minor
status: open
title: logging/__init__.py
versions: Python 2.5
__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1206>
__________________________________
--- __init__.py.orig 2007-04-05 22:11:22.000000000 +0400
+++ __init__.py 2007-09-26 20:44:59.000000000 +0400
@@ -223,7 +223,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] and (type(args[0]) == types.DictType):
+ if args and len(args) == 1 and isinstance(args[0], dict) and args[0]:
args = args[0]
self.args = args
self.levelname = getLevelName(level)
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com