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

Function embedded_body

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

Source from the content-addressed store, hash-verified

135 lines = string.encode(charset).splitlines()
136 linesep = policy.linesep.encode('ascii')
137 def embedded_body(lines): return linesep.join(lines) + linesep
138 def normal_body(lines): return b'\n'.join(lines) + b'\n'
139 if cte is None:
140 # 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…