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

Method write

Lib/ssl.py:1166–1173  ·  view source on GitHub ↗

Write DATA to the underlying SSL channel. Returns number of bytes of DATA actually transmitted.

(self, data)

Source from the content-addressed store, hash-verified

1164 raise
1165
1166 def write(self, data):
1167 """Write DATA to the underlying SSL channel. Returns
1168 number of bytes of DATA actually transmitted."""
1169
1170 self._checkClosed()
1171 if self._sslobj is None:
1172 raise ValueError("Write on closed or unwrapped SSL socket.")
1173 return self._sslobj.write(data)
1174
1175 @_sslcopydoc
1176 def getpeercert(self, binary_form=False):

Callers

nothing calls this directly

Calls 2

_checkClosedMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected