def findElementsWithAttributeShallow(parent, attribute):
    return findNodesShallow(parent,
        lambda n: getattr(n, 'tagName', None) is not None and
            n.hasAttribute(attribute))
Return an iterable of the elements which are direct children of C{parent}
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/web/domhelpers.py/findElementsWithAttributeShallow