MCPcopy Index your code
hub / github.com/RustPython/RustPython / _new_buffer

Method _new_buffer

Lib/email/generator.py:142–144  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

140 # hack anyway this seems good enough.
141
142 def _new_buffer(self):
143 # BytesGenerator overrides this to return BytesIO.
144 return StringIO()
145
146 def _encode(self, s):
147 # BytesGenerator overrides this to encode strings to bytes.

Callers 4

_writeMethod · 0.95
_handle_multipartMethod · 0.95
_handle_messageMethod · 0.95

Calls 1

StringIOClass · 0.90

Tested by

no test coverage detected