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

Method encode

module/lib/simplejson/encoder.py:310–317  ·  view source on GitHub ↗
(self, o)

Source from the content-addressed store, hash-verified

308 """
309
310 def encode(self, o):
311 # Override JSONEncoder.encode because it has hacks for
312 # performance that make things more complicated.
313 chunks = self.iterencode(o, True)
314 if self.ensure_ascii:
315 return ''.join(chunks)
316 else:
317 return u''.join(chunks)
318
319 def iterencode(self, o, _one_shot=False):
320 chunks = super(JSONEncoderForHTML, self).iterencode(o, _one_shot)

Callers

nothing calls this directly

Calls 2

iterencodeMethod · 0.95
joinMethod · 0.80

Tested by

no test coverage detected