logging: made _handlers a WeakValueDictionary.

This commit is contained in:
Vinay Sajip 2009-11-25 09:22:47 +00:00
parent c470d68d39
commit 17e94e052f
1 changed files with 1 additions and 1 deletions

View File

@ -590,7 +590,7 @@ class Filterer(object):
# Handler classes and functions
#---------------------------------------------------------------------------
_handlers = {} #map of handler names to handlers
_handlers = weakref.WeakValueDictionary() #map of handler names to handlers
_handlerList = [] # added to allow handlers to be removed in reverse of order initialized
def _removeHandlerRef(wr):