(self, encoding=DEFAULT_OUTPUT_ENCODING,
indent_level=None, formatter="minimal",
errors="xmlcharrefreplace")
| 1048 | __str__ = __repr__ = __unicode__ |
| 1049 | |
| 1050 | def encode(self, encoding=DEFAULT_OUTPUT_ENCODING, |
| 1051 | indent_level=None, formatter="minimal", |
| 1052 | errors="xmlcharrefreplace"): |
| 1053 | # Turn the data structure into Unicode, then encode the |
| 1054 | # Unicode. |
| 1055 | u = self.decode(indent_level, encoding, formatter) |
| 1056 | return u.encode(encoding, errors) |
| 1057 | |
| 1058 | def _should_pretty_print(self, indent_level): |
| 1059 | """Should this tag be pretty-printed?""" |