parameters: (destination_dir, url)
docstring: Saves all the dependencies in deps_path.
  
    Opens and reads url, assuming the contents are in the simple DEPS-like file
    format specified in the header of this file, then download all
    files/directories listed to the destination_dir.
  
    Args:
      destination_dir: String path to directory to download files into.
      url: URL containing deps information to be evaluated.
docstring_summary: Saves all the dependencies in deps_path.
docstring_tokens: Saves all the dependencies in deps_path .
function: def DownloadDeps(destination_dir, url):
    """Saves all the dependencies in deps_path.
  
    Opens and reads url, assuming the contents are in the simple DEPS-like file
    format specified in the header of this file, then download all
    files/directories listed to the destination_dir.
  
    Args:
      destination_dir: String path to directory to download files into.
      url: URL containing deps information to be evaluated.
    """
    logging.warning('Downloading deps from %s...', url)
    # TODO(wiltzius): Add a parameter for which revision to pull.
    _DownloadAndImportDAVClientModule()
  
    deps = {}
    deps_includes = {}
  
    exec urllib.urlopen(url).read()
  
    for dst_path, src_path in deps.iteritems():
      full_dst_path = os.path.join(destination_dir, dst_path)
      parsed_url = urlparse.urlparse(src_path)
      root_url = parsed_url.scheme + '://' + parsed_url.netloc
  
      dav_client = DAVClientWrapper(root_url)
      dav_client.Traverse(parsed_url.path, full_dst_path)
  
    for url in deps_includes.values():
      DownloadDeps(destination_dir, url)
function_tokens: def DownloadDeps ( destination_dir , url ) : logging . warning ( 'Downloading deps from %s...' , url ) # TODO(wiltzius): Add a parameter for which revision to pull. _DownloadAndImportDAVClientModule ( ) deps = { } deps_includes = { } exec urllib . urlopen ( url ) . read ( ) for dst_path , src_path in deps . iteritems ( ) : full_dst_path = os . path . join ( destination_dir , dst_path ) parsed_url = urlparse . urlparse ( src_path ) root_url = parsed_url . scheme + '://' + parsed_url . netloc dav_client = DAVClientWrapper ( root_url ) dav_client . Traverse ( parsed_url . path , full_dst_path ) for url in deps_includes . values ( ) : DownloadDeps ( destination_dir , url )