Import a chunk of UTF-8 HTML code from the path.
(self, path)
| 597 | write = addHtml |
| 598 | |
| 599 | def importHtml(self, path): |
| 600 | """Import a chunk of UTF-8 HTML code from the path.""" |
| 601 | if os.path.exists(path): |
| 602 | f = codecs.open(path, 'r', 'utf-8') |
| 603 | self.addHtml(f.read()) |
| 604 | f.close() |
| 605 | else: |
| 606 | self.comment('Cannot find HTML file "%s"' % path) |
| 607 | |
| 608 | def writeHtml(self, path): |
| 609 | """Write the collected set of html chunks to path.""" |
no test coverage detected