Kaydet (Commit) 17e94e05 authored tarafından Vinay Sajip's avatar Vinay Sajip

logging: made _handlers a WeakValueDictionary.

üst c470d68d
...@@ -590,7 +590,7 @@ class Filterer(object): ...@@ -590,7 +590,7 @@ class Filterer(object):
# Handler classes and functions # 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 _handlerList = [] # added to allow handlers to be removed in reverse of order initialized
def _removeHandlerRef(wr): def _removeHandlerRef(wr):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment