MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _addHandlerRef

Function _addHandlerRef

tools/python-3.11.9-amd64/Lib/logging/__init__.py:863–871  ·  view source on GitHub ↗

Add a handler to the internal cleanup list using a weak reference.

(handler)

Source from the content-addressed store, hash-verified

861 release()
862
863def _addHandlerRef(handler):
864 """
865 Add a handler to the internal cleanup list using a weak reference.
866 """
867 _acquireLock()
868 try:
869 _handlerList.append(weakref.ref(handler, _removeHandlerRef))
870 finally:
871 _releaseLock()
872
873class Handler(Filterer):
874 """

Callers 1

__init__Method · 0.85

Calls 3

_acquireLockFunction · 0.85
_releaseLockFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected