MCPcopy Index your code
hub / github.com/pyload/pyload / iterencode

Method iterencode

module/lib/simplejson/encoder.py:319–325  ·  view source on GitHub ↗
(self, o, _one_shot=False)

Source from the content-addressed store, hash-verified

317 return u''.join(chunks)
318
319 def iterencode(self, o, _one_shot=False):
320 chunks = super(JSONEncoderForHTML, self).iterencode(o, _one_shot)
321 for chunk in chunks:
322 chunk = chunk.replace('&', '\\u0026')
323 chunk = chunk.replace('<', '\\u003c')
324 chunk = chunk.replace('>', '\\u003e')
325 yield chunk
326
327
328def _make_iterencode(markers, _default, _encoder, _indent, _floatstr,

Callers 1

encodeMethod · 0.95

Calls 2

iterencodeMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected