capybara/virtualenv/lib/python2.7/site-packages/lxml/html/soupparser.py
def parse(file, beautifulsoup=None, makeelement=None, **bsargs):
    """Parse a file into an ElemenTree using the BeautifulSoup parser.

    You can pass a different BeautifulSoup parser through the
    `beautifulsoup` keyword, and a diffent Element factory function
    through the `makeelement` keyword.  By default, the standard
    ``BeautifulSoup`` class and the default factory of `lxml.html` are
    used.
    """
    if not hasattr(file, 'read'):
        file = open(file)
    root = _parse(file, beautifulsoup, makeelement, **bsargs)
    return etree.ElementTree(root)
def parse(file, beautifulsoup=None, makeelement=None, **bsargs):
    if not hasattr(file, 'read'):
        file = open(file)
    root = _parse(file, beautifulsoup, makeelement, **bsargs)
    return etree.ElementTree(root)
def parse ( file , beautifulsoup = None , makeelement = None , * * bsargs ) : if not hasattr ( file , 'read' ) : file = open ( file ) root = _parse ( file , beautifulsoup , makeelement , * * bsargs ) return etree . ElementTree ( root )
Parse a file into an ElemenTree using the BeautifulSoup parser.

    You can pass a different BeautifulSoup parser through the
    `beautifulsoup` keyword, and a diffent Element factory function
    through the `makeelement` keyword.  By default, the standard
    ``BeautifulSoup`` class and the default factory of `lxml.html` are
    used.
Parse a file into an ElemenTree using the BeautifulSoup parser .