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

Method makeSocket

Lib/logging/handlers.py:729–739  ·  view source on GitHub ↗

The factory method of SocketHandler is here overridden to create a UDP socket (SOCK_DGRAM).

(self)

Source from the content-addressed store, hash-verified

727 self.closeOnError = False
728
729 def makeSocket(self):
730 """
731 The factory method of SocketHandler is here overridden to create
732 a UDP socket (SOCK_DGRAM).
733 """
734 if self.port is None:
735 family = socket.AF_UNIX
736 else:
737 family = socket.AF_INET
738 s = socket.socket(family, socket.SOCK_DGRAM)
739 return s
740
741 def send(self, s):
742 """

Callers

nothing calls this directly

Calls 1

socketMethod · 0.80

Tested by

no test coverage detected