commit | e6bfe80b670a20b1226d94b5e1b3d48d0ec59934 | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Mon Aug 04 00:09:43 2008 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Mon Aug 04 00:09:43 2008 +0000 |
tree | 5cd7afa292bb037ccbca4838dd3ee3e4e47d1324 | |
parent | 36bed8a25f0c0d255af94e90b533881d821e676a [diff] [blame] |
Remove dict.has_key() and apply() usage from the logging package to silence warnings when run under -3.
diff --git a/Lib/logging/config.py b/Lib/logging/config.py index 6d3daa2..7c2f6ce 100644 --- a/Lib/logging/config.py +++ b/Lib/logging/config.py
@@ -152,7 +152,7 @@ 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])