equal
deleted
inserted
replaced
312 for line in self.document.render_raw_lines(**render_opts) : |
312 for line in self.document.render_raw_lines(**render_opts) : |
313 yield line |
313 yield line |
314 |
314 |
315 def _check_encoding (self, encoding) : |
315 def _check_encoding (self, encoding) : |
316 if encoding and encoding != self.xml_encoding : |
316 if encoding and encoding != self.xml_encoding : |
317 raise ValueError("encoding mismatch: %r should be %r" % (encoding, self.xml_encoding) |
317 raise ValueError("encoding mismatch: %r should be %r" % (encoding, self.xml_encoding)) |
318 |
318 |
319 def render_str (self, encoding=None, **render_opts) : |
319 def render_str (self, encoding=None, **render_opts) : |
320 """ |
320 """ |
321 Wrap render_str to verify that the right encoding is used |
321 Wrap render_str to verify that the right encoding is used |
322 """ |
322 """ |