mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Undo the apply() removals; this code needs to run under Python 1.5.2.
This commit is contained in:
parent
206b9a779a
commit
0df6442ae5
2 changed files with 14 additions and 14 deletions
|
|
@ -102,7 +102,7 @@ def fileConfig(fname, defaults=None):
|
|||
klass = eval(klass, vars(logging))
|
||||
args = cp.get(sectname, "args")
|
||||
args = eval(args, vars(logging))
|
||||
h = klass(*args)
|
||||
h = apply(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