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

Method __init__

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

Source from the content-addressed store, hash-verified

643 class file_dispatcher(dispatcher):
644
645 def __init__(self, fd, map=None):
646 dispatcher.__init__(self, None, map)
647 self.connected = True
648 try:
649 fd = fd.fileno()
650 except AttributeError:
651 pass
652 self.set_file(fd)
653 # set it to non-blocking mode
654 os.set_blocking(fd, False)
655
656 def set_file(self, fd):
657 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