(self, o)
| 323 | """ |
| 324 | |
| 325 | def encode(self, o): |
| 326 | # Override JSONEncoder.encode because it has hacks for |
| 327 | # performance that make things more complicated. |
| 328 | chunks = self.iterencode(o, True) |
| 329 | if self.ensure_ascii: |
| 330 | return ''.join(chunks) |
| 331 | else: |
| 332 | return u''.join(chunks) |
| 333 | |
| 334 | def iterencode(self, o, _one_shot=False): |
| 335 | chunks = super(JSONEncoderForHTML, self).iterencode(o, _one_shot) |
nothing calls this directly
no test coverage detected