diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-08-04 00:09:43 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-08-04 00:09:43 (GMT) |
commit | e6bfe80b670a20b1226d94b5e1b3d48d0ec59934 (patch) | |
tree | 5cd7afa292bb037ccbca4838dd3ee3e4e47d1324 /Lib/logging/config.py | |
parent | 36bed8a25f0c0d255af94e90b533881d821e676a (diff) | |
download | cpython-e6bfe80b670a20b1226d94b5e1b3d48d0ec59934.zip cpython-e6bfe80b670a20b1226d94b5e1b3d48d0ec59934.tar.gz cpython-e6bfe80b670a20b1226d94b5e1b3d48d0ec59934.tar.bz2 |
Remove dict.has_key() and apply() usage from the logging package to silence
warnings when run under -3.
Diffstat (limited to 'Lib/logging/config.py')
-rw-r--r-- | Lib/logging/config.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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]) |