def _restore_file(path, delete_backup=True):
    """
    Restore a file if it exists and remove the backup
    """
    backup_base = '/var/local/woven-backup'
    backup_path = ''.join([backup_base,path])
    if exists(backup_path):
        if delete_backup:
            sudo('mv -f %s %s'% (backup_path,path))
        else:
            sudo((backup_path,path)% 'cp -f %s %s')
dataset/ETHPy150Open bretth/woven/woven/deployment.py/_restore_file/swapped operands of `%`