def processRefs(refs):
    seenRefs = set()
    for keysByText in refs.values():
        for refsByKey in keysByText.values():
            for ref in refsByKey.values():
                key = (ref.url, ref.spec)
                if (key not in seenRefs):
                    (yield ref)
                    seenRefs.add(key)
def processRefs(refs):
    seenRefs = set()
    for keysByText in refs.values():
        for refsByKey in keysByText.values():
            for ref in refsByKey.values():
                key = (ref.url, ref.spec)
                if (key not in seenRefs):
                    (yield ref)
                    seenRefs.add(key)