capybara/virtualenv/lib/python2.7/site-packages/lxml/html/diff.py
def expand_tokens(tokens, equal=False):
    """Given a list of tokens, return a generator of the chunks of
    text for the data in the tokens.
    """
    for token in tokens:
        for pre in token.pre_tags:
            yield pre
        if not equal or not token.hide_when_equal:
            if token.trailing_whitespace:
                yield token.html() + token.trailing_whitespace
            else:
                yield token.html()
        for post in token.post_tags:
            yield post
def expand_tokens(tokens, equal=False):
    for token in tokens:
        for pre in token.pre_tags:
            yield pre
        if not equal or not token.hide_when_equal:
            if token.trailing_whitespace:
                yield token.html() + token.trailing_whitespace
            else:
                yield token.html()
        for post in token.post_tags:
            yield post
def expand_tokens ( tokens , equal = False ) : for token in tokens : for pre in token . pre_tags : yield pre if not equal or not token . hide_when_equal : if token . trailing_whitespace : yield token . html ( ) + token . trailing_whitespace else : yield token . html ( ) for post in token . post_tags : yield post
Given a list of tokens, return a generator of the chunks of
    text for the data in the tokens.
Given a list of tokens return a generator of the chunks of text for the data in the tokens .