Remove dict.has_key() and apply() usage from the logging package to silence

warnings when run under -3.
This commit is contained in:
Brett Cannon 2008-08-04 00:09:43 +00:00
parent 36bed8a25f
commit e6bfe80b67
2 changed files with 17 additions and 17 deletions

View file

@ -152,7 +152,7 @@ def _install_handlers(cp, formatters):
klass = _resolve(klass)
args = cp.get(sectname, "args")
args = eval(args, vars(logging))
h = apply(klass, args)
h = klass(*args)
if "level" in opts:
level = cp.get(sectname, "level")
h.setLevel(logging._levelNames[level])