def dump_state(dt):
    """Dump all the global aggregators so we can pick at the same spot."""
    log.info(dt % 'Saving state for %s.')
    if os.path.exists(PICKLE):
        shutil.copyfile(PICKLE, BACKUP)
    d = {'G': G, 'last_update': dt}
    pickle.dump(d, open(PICKLE, 'w'))
dataset/ETHPy150Open jbalogh/glow/glow.py/dump_state/swapped operands of `%`