(text)
| 434 | def unknown_decl(self, data): pass |
| 435 | |
| 436 | def wrapwrite(text): |
| 437 | text = text.encode('utf-8') |
| 438 | try: #Python3 |
| 439 | sys.stdout.buffer.write(text) |
| 440 | except AttributeError: |
| 441 | sys.stdout.write(text) |
| 442 | |
| 443 | def html2text_file(html, out=wrapwrite, baseurl=''): |
| 444 | h = _html2text(out, baseurl) |