From: Vinay Sajip Date: Thu, 11 Jan 2007 20:26:05 +0000 (+0000) Subject: Fixed bug in fileConfig where _handlerList was not being cleared. (SF #1632328) X-Git-Tag: v2.4.5c1~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=741e0bb5f46588ad71d3ac940a430e46e8d77df1;p=thirdparty%2FPython%2Fcpython.git Fixed bug in fileConfig where _handlerList was not being cleared. (SF #1632328) --- diff --git a/Lib/logging/config.py b/Lib/logging/config.py index 81ef328fb387..d57fa37c0425 100644 --- a/Lib/logging/config.py +++ b/Lib/logging/config.py @@ -97,6 +97,7 @@ def fileConfig(fname, defaults=None): try: #first, lose the existing handlers... logging._handlers.clear() + del logging._handlerList[:] #now set up the new ones... hlist = cp.get("handlers", "keys") if len(hlist):