

def delay(iterator, wait=1, every=1):
    "\n    Delays between every n images for the specified time. Useful so that Flickr\n    doesn't disable your API key for excessive usage.\n    "
    for (i, photo) in enumerate(iterator):
        if ((i > 0) and ((i % every) == 0)):
            time.sleep(i)
        (yield photo)

dataset/ETHPy150Open cvondrick/pyvision/vision/flickr.py delay/VarMisuse@59/118 `wait`->`i`