mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Remove apply()
This commit is contained in:
parent
fe55464f39
commit
d91085598f
56 changed files with 179 additions and 285 deletions
|
@ -148,7 +148,7 @@ def _install_handlers(cp, formatters):
|
|||
klass = eval(klass, vars(logging))
|
||||
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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue