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

Method meth_from_sock

Lib/test/test_socket.py:6859–6862  ·  view source on GitHub ↗
(self, sock)

Source from the content-addressed store, hash-verified

6857 return b''.join(received)
6858
6859 def meth_from_sock(self, sock):
6860 # Depending on the mixin class being run return either send()
6861 # or sendfile() method implementation.
6862 return getattr(sock, "_sendfile_use_send")
6863
6864 # regular file
6865

Callers 10

_testRegularFileMethod · 0.95
_testEmptyFileSendMethod · 0.95
_testOffsetMethod · 0.95
_testCountMethod · 0.95
_testCountSmallMethod · 0.95
_testCountWithOffsetMethod · 0.95
_testNonBlockingMethod · 0.95
_testWithTimeoutMethod · 0.95
test_errorsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected