capybara/virtualenv/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.py
def parse(doc, treebuilder="etree", encoding=None,
          namespaceHTMLElements=True):
    """Parse a string or file-like object into a tree"""
    tb = treebuilders.getTreeBuilder(treebuilder)
    p = HTMLParser(tb, namespaceHTMLElements=namespaceHTMLElements)
    return p.parse(doc, encoding=encoding)
def parse(doc, treebuilder="etree", encoding=None,
          namespaceHTMLElements=True):
    tb = treebuilders.getTreeBuilder(treebuilder)
    p = HTMLParser(tb, namespaceHTMLElements=namespaceHTMLElements)
    return p.parse(doc, encoding=encoding)
def parse ( doc , treebuilder = "etree" , encoding = None , namespaceHTMLElements = True ) : tb = treebuilders . getTreeBuilder ( treebuilder ) p = HTMLParser ( tb , namespaceHTMLElements = namespaceHTMLElements ) return p . parse ( doc , encoding = encoding )
Parse a string or file-like object into a tree
Parse a string or file - like object into a tree