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

Function embedded_body

Lib/email/contentmanager.py:150–150  ·  view source on GitHub ↗
(lines)

Source from the content-addressed store, hash-verified

148 lines = string.encode(charset).splitlines()
149 linesep = policy.linesep.encode('ascii')
150 def embedded_body(lines): return linesep.join(lines) + linesep
151 def normal_body(lines): return b'\n'.join(lines) + b'\n'
152 if cte is None:
153 # Use heuristics to decide on the "best" encoding.

Callers 1

_encode_textFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected