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

Method _new_buffer

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

Source from the content-addressed store, hash-verified

141 # hack anyway this seems good enough.
142
143 def _new_buffer(self):
144 # BytesGenerator overrides this to return BytesIO.
145 return StringIO()
146
147 def _encode(self, s):
148 # 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