

def get_doc(self):
    from pycopia.WWW import XHTMLparse
    text = self._make_body()
    hdrs = self._make_headers()
    actualtype = hdrs['content-type'].value
    p = XHTMLparse.get_parser(mimetype=actualtype)
    p.feed(text)
    p.close()
    doc = p.getContentHandler().doc
    doc.headers = self.headers
    return doc

dataset/ETHPy150Open kdart/pycopia/WWW/pycopia/WWW/client.py HTTPResponse.get_doc/original