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

Method set_file

Lib/test/support/asyncore.py:646–649  ·  view source on GitHub ↗
(self, fd)

Source from the content-addressed store, hash-verified

644 os.set_blocking(fd, False)
645
646 def set_file(self, fd):
647 self.socket = file_wrapper(fd)
648 self._fileno = self.socket.fileno()
649 self.add_channel()

Callers 1

__init__Method · 0.95

Calls 3

file_wrapperClass · 0.85
add_channelMethod · 0.80
filenoMethod · 0.45

Tested by

no test coverage detected