MCPcopy
hub / github.com/cherrypy/cherrypy / encoder

Method encoder

cherrypy/lib/encoding.py:102–106  ·  view source on GitHub ↗
(body)

Source from the content-addressed store, hash-verified

100 self.attempted_charsets.add(encoding)
101
102 def encoder(body):
103 for chunk in body:
104 if isinstance(chunk, str):
105 chunk = chunk.encode(encoding, self.errors)
106 yield chunk
107 self.body = encoder(self.body)
108 return True
109

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected