Save HTML page to a file using the proper encoding
(self, filename)
| 299 | yield from self.tables |
| 300 | |
| 301 | def save(self, filename): |
| 302 | """Save HTML page to a file using the proper encoding""" |
| 303 | with codecs.open(filename, "w", self.encoding) as outfile: |
| 304 | for line in str(self): |
| 305 | outfile.write(line) |
| 306 | |
| 307 | def add_table(self, table): |
| 308 | """Add a SimpleTable to the page list of tables""" |
no outgoing calls
no test coverage detected