MCPcopy Index your code
hub / github.com/RustPython/RustPython / close

Method close

Lib/logging/__init__.py:1045–1058  ·  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

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

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected