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

Method __init__

Lib/test/support/asyncore.py:635–644  ·  view source on GitHub ↗
(self, fd, map=None)

Source from the content-addressed store, hash-verified

633 class file_dispatcher(dispatcher):
634
635 def __init__(self, fd, map=None):
636 dispatcher.__init__(self, None, map)
637 self.connected = True
638 try:
639 fd = fd.fileno()
640 except AttributeError:
641 pass
642 self.set_file(fd)
643 # set it to non-blocking mode
644 os.set_blocking(fd, False)
645
646 def set_file(self, fd):
647 self.socket = file_wrapper(fd)

Callers

nothing calls this directly

Calls 3

set_fileMethod · 0.95
__init__Method · 0.45
filenoMethod · 0.45

Tested by

no test coverage detected