Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ write
Method
write
Lib/email/generator.py:419–420 ·
view source on GitHub ↗
(self, s)
Source
from the content-addressed store, hash-verified
417
""
"
418
419
def
write(self, s):
420
self._fp.write(s.encode(
'ascii'
,
'surrogateescape'
))
421
422
def
_new_buffer(self):
423
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