MCPcopy Index your code
hub / github.com/clips/pattern / iterencode

Method iterencode

pattern/web/json/encoder.py:334–340  ·  view source on GitHub ↗
(self, o, _one_shot=False)

Source from the content-addressed store, hash-verified

332 return u''.join(chunks)
333
334 def iterencode(self, o, _one_shot=False):
335 chunks = super(JSONEncoderForHTML, self).iterencode(o, _one_shot)
336 for chunk in chunks:
337 chunk = chunk.replace('&', '\\u0026')
338 chunk = chunk.replace('<', '\\u003c')
339 chunk = chunk.replace('>', '\\u003e')
340 yield chunk
341
342
343def _make_iterencode(markers, _default, _encoder, _indent, _floatstr,

Callers 1

encodeMethod · 0.95

Calls 1

iterencodeMethod · 0.45

Tested by

no test coverage detected