def extractHeaders(stanza):
    headers = {}

    for element in domish.generateElementsQNamed(stanza.children,
                                                 'headers', NS_SHIM):
        for header in domish.generateElementsQNamed(element.children,
                                                    'header', NS_SHIM):
            headers.setdefault(header['name'], []).append(unicode(header))

    return headers
Test that all functions on a _Data object are instance methods
dataset/ETHPy150Open ralphm/wokkel/wokkel/shim.py/extractHeaders--crossover with--dataset/ETHPy150Open blaze/blaze/blaze/tests/test_interactive.py/test_functions_as_bound_methods