(self, o)
| 411 | """ |
| 412 | |
| 413 | def encode(self, o): |
| 414 | # Override JSONEncoder.encode because it has hacks for |
| 415 | # performance that make things more complicated. |
| 416 | chunks = self.iterencode(o) |
| 417 | if self.ensure_ascii: |
| 418 | return ''.join(chunks) |
| 419 | else: |
| 420 | return u''.join(chunks) |
| 421 | |
| 422 | def iterencode(self, o): |
| 423 | chunks = super(JSONEncoderForHTML, self).iterencode(o) |
nothing calls this directly
no test coverage detected