--- __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)