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