Add a handler to the internal cleanup list using a weak reference.
(handler)
| 900 | pass |
| 901 | |
| 902 | def _addHandlerRef(handler): |
| 903 | """ |
| 904 | Add a handler to the internal cleanup list using a weak reference. |
| 905 | """ |
| 906 | with _lock: |
| 907 | _handlerList.append(weakref.ref(handler, _removeHandlerRef)) |
| 908 | |
| 909 | |
| 910 | def getHandlerByName(name): |