MCPcopy Create free account
hub / github.com/EasyIME/PIME / write_to_fd

Method write_to_fd

python/python3/tornado/iostream.py:1650–1656  ·  view source on GitHub ↗
(self, data: memoryview)

Source from the content-addressed store, hash-verified

1648 self._fio.close()
1649
1650 def write_to_fd(self, data: memoryview) -> int:
1651 try:
1652 return os.write(self.fd, data) # type: ignore
1653 finally:
1654 # Avoid keeping to data, which can be a memoryview.
1655 # See https://github.com/tornadoweb/tornado/pull/2008
1656 del data
1657
1658 def read_from_fd(self, buf: Union[bytearray, memoryview]) -> Optional[int]:
1659 try:

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected