Tidy up any resources used by the handler. This version removes the handler from an internal map of handlers, _handlers, which is used for handler lookup by name. Subclasses should ensure that this gets called from overridden close() methods.
(self)
| 1043 | pass |
| 1044 | |
| 1045 | def close(self): |
| 1046 | """ |
| 1047 | Tidy up any resources used by the handler. |
| 1048 | |
| 1049 | This version removes the handler from an internal map of handlers, |
| 1050 | _handlers, which is used for handler lookup by name. Subclasses |
| 1051 | should ensure that this gets called from overridden close() |
| 1052 | methods. |
| 1053 | """ |
| 1054 | #get the module data lock, as we're updating a shared structure. |
| 1055 | with _lock: |
| 1056 | self._closed = True |
| 1057 | if self._name and self._name in _handlers: |
| 1058 | del _handlers[self._name] |
| 1059 | |
| 1060 | def handleError(self, record): |
| 1061 | """ |
no outgoing calls
no test coverage detected