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

Function quopri_encode

Lib/encodings/quopri_codec.py:10–15  ·  view source on GitHub ↗
(input, errors='strict')

Source from the content-addressed store, hash-verified

8from io import BytesIO
9
10def quopri_encode(input, errors='strict'):
11 assert errors == 'strict'
12 f = BytesIO(input)
13 g = BytesIO()
14 quopri.encode(f, g, quotetabs=True)
15 return (g.getvalue(), len(input))
16
17def quopri_decode(input, errors='strict'):
18 assert errors == 'strict'

Callers 2

encodeMethod · 0.85
encodeMethod · 0.85

Calls 3

getvalueMethod · 0.95
BytesIOClass · 0.90
encodeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…