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

Function encode_quopri

Lib/email/encoders.py:36–44  ·  view source on GitHub ↗

Encode the message's payload in quoted-printable. Also, add an appropriate Content-Transfer-Encoding header.

(msg)

Source from the content-addressed store, hash-verified

34
35
36def encode_quopri(msg):
37 """Encode the message's payload in quoted-printable.
38
39 Also, add an appropriate Content-Transfer-Encoding header.
40 """
41 orig = msg.get_payload(decode=True)
42 encdata = _qencode(orig)
43 msg.set_payload(encdata)
44 msg['Content-Transfer-Encoding'] = 'quoted-printable'
45
46
47def encode_7or8bit(msg):

Callers

nothing calls this directly

Calls 3

_qencodeFunction · 0.85
get_payloadMethod · 0.80
set_payloadMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…