

def foundurl(lookforurl, positions=''):
    'Return a looked-for URL, given a positions object.'
    if positions:
        urldict = json.loads(positions)
        for (thepos, aurl) in urldict.iteritems():
            if (lookforurl.lower() == aurl.lower()):
                return aurl

dataset/ETHPy150Open miklevin/pipulate/common.py foundurl/original