def el_iter(el):
    """
    Go through all elements
    """
    try:
        for child in el.iter():
            yield child
    except __HOLE__:
        # iter isn't available in < python 2.7
        for child in el.getiterator():
            yield child
dataset/ETHPy150Open CenterForOpenScience/pydocx/pydocx/util/xml.py/el_iter