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

Method close

Lib/logging/handlers.py:961–970  ·  view source on GitHub ↗

Closes the socket.

(self)

Source from the content-addressed store, hash-verified

959 return (facility << 3) | priority
960
961 def close(self):
962 """
963 Closes the socket.
964 """
965 with self.lock:
966 sock = self.socket
967 if sock:
968 self.socket = None
969 sock.close()
970 logging.Handler.close(self)
971
972 def mapPriority(self, levelName):
973 """

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected