MCPcopy Index your code
hub / github.com/python/cpython / close

Method close

Lib/logging/__init__.py:1048–1061  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 4

formatExceptionMethod · 0.45
closeMethod · 0.45
basicConfigFunction · 0.45
shutdownFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected