def get_backup_files(backup_info, selected_kinds=None):
 if backup_info.blob_files:
  return backup_info.blob_files
 else:
  kinds_backup_files = backup_info.get_kind_backup_files(selected_kinds)
  return list(itertools.chain(*(kind_backup_files.files for kind_backup_files in kinds_backup_files)))

def get_backup_files ( backup_info , selected_kinds = None ) : if backup_info . blob_files : return backup_info . blob_files else : kinds_backup_files = backup_info . get_kind_backup_files ( selected_kinds ) return list ( itertools . chain ( * ( kind_backup_files . files for kind_backup_files in kinds_backup_files ) ) )
returns the backup filenames for selected kinds or all if none/empty .