tools/perf/fetch_benchmark_deps.py
def _FetchDependenciesIfNeeded(story_set):
  """ Download files needed by a user story set. """
  # Download files in serving_dirs.
  serving_dirs = story_set.serving_dirs
  for directory in serving_dirs:
    cloud_storage.GetFilesInDirectoryIfChanged(directory, story_set.bucket)

  if not story_set.wpr_archive_info:
    return

  # Download WPR files.
  story_names = [s.name for s in story_set if not s.is_local]
  story_set.wpr_archive_info.DownloadArchivesIfNeeded(story_names=story_names)
 Download files needed by a user story set. 
Download files needed by a user story set.
Download files needed by a user story set .
def _FetchDependenciesIfNeeded(story_set):
  serving_dirs = story_set.serving_dirs
  for directory in serving_dirs:
    cloud_storage.GetFilesInDirectoryIfChanged(directory, story_set.bucket)
  if not story_set.wpr_archive_info:
    return
  story_names = [s.name for s in story_set if not s.is_local]
  story_set.wpr_archive_info.DownloadArchivesIfNeeded(story_names=story_names)
def _FetchDependenciesIfNeeded ( story_set ) : serving_dirs = story_set . serving_dirs for directory in serving_dirs : cloud_storage . GetFilesInDirectoryIfChanged ( directory , story_set . bucket ) if not story_set . wpr_archive_info : return story_names = [ s . name for s in story_set if not s . is_local ] story_set . wpr_archive_info . DownloadArchivesIfNeeded ( story_names = story_names )
Download files needed by a user story set.
Download files needed by a user story set .
""" Download files needed by a user story set. """ # Download files in serving_dirs. # Download WPR files.
story_set