MCPcopy Index your code
hub / github.com/aaronsw/html2text / wrapwrite

Function wrapwrite

html2text.py:436–441  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

434 def unknown_decl(self, data): pass
435
436def 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
443def html2text_file(html, out=wrapwrite, baseurl=''):
444 h = _html2text(out, baseurl)

Callers 1

html2text.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected