]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixed bug in fileConfig where _handlerList was not being cleared. (SF #1632328)
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Thu, 11 Jan 2007 20:26:05 +0000 (20:26 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Thu, 11 Jan 2007 20:26:05 +0000 (20:26 +0000)
Lib/logging/config.py

index 81ef328fb38760b876904483fd9fb965551905be..d57fa37c04256d3fb11c805118600e90c5e11164 100644 (file)
@@ -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):