(self, o)
| 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) |
nothing calls this directly
no test coverage detected