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

Function encodestring

Lib/quopri.py:101–108  ·  view source on GitHub ↗
(s, quotetabs=False, header=False)

Source from the content-addressed store, hash-verified

99 write(prevline, lineEnd=stripped)
100
101def encodestring(s, quotetabs=False, header=False):
102 if b2a_qp is not None:
103 return b2a_qp(s, quotetabs=quotetabs, header=header)
104 from io import BytesIO
105 infp = BytesIO(s)
106 outfp = BytesIO()
107 encode(infp, outfp, quotetabs, header)
108 return outfp.getvalue()
109
110
111

Callers

nothing calls this directly

Calls 3

getvalueMethod · 0.95
BytesIOClass · 0.90
encodeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…