mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
logging: made _handlers a WeakValueDictionary.
This commit is contained in:
parent
c470d68d39
commit
17e94e052f
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue