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

Method write

Lib/email/generator.py:420–421  ·  view source on GitHub ↗
(self, s)

Source from the content-addressed store, hash-verified

418 """
419
420 def write(self, s):
421 self._fp.write(s.encode('ascii', 'surrogateescape'))
422
423 def _new_buffer(self):
424 return BytesIO()

Callers 1

_write_headersMethod · 0.95

Calls 2

writeMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected