Undo the apply() removals; this code needs to run under Python 1.5.2.

This commit is contained in:
Guido van Rossum 2003-03-02 20:47:29 +00:00
parent 206b9a779a
commit 0df6442ae5
2 changed files with 14 additions and 14 deletions

View file

@ -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])