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

Method close

Lib/logging/handlers.py:968–977  ·  view source on GitHub ↗

Closes the socket.

(self)

Source from the content-addressed store, hash-verified

966 return (facility << 3) | priority
967
968 def close(self):
969 """
970 Closes the socket.
971 """
972 with self.lock:
973 sock = self.socket
974 if sock:
975 self.socket = None
976 sock.close()
977 logging.Handler.close(self)
978
979 def mapPriority(self, levelName):
980 """

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected