Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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_headers
Method · 0.95
Calls
2
write
Method · 0.45
encode
Method · 0.45
Tested by
no test coverage detected