lib/webrtc-8d2248ff/tools/autoroller/roll_chromium_revision.py
def BuildDepsentryDict(deps_dict):
  """Builds a dict of DepsEntry object from a raw parsed deps dict."""
  result = {}
  def AddDepsEntries(deps_subdict):
    for path, deps_url in deps_subdict.iteritems():
      if not result.has_key(path):
        url, revision = deps_url.split('@') if deps_url else (None, None)
        result[path] = DepsEntry(path, url, revision)

  AddDepsEntries(deps_dict['deps'])
  for deps_os in ['win', 'mac', 'unix', 'android', 'ios', 'unix']:
    AddDepsEntries(deps_dict['deps_os'].get(deps_os, {}))
  return result
Builds a dict of DepsEntry object from a raw parsed deps dict.
Builds a dict of DepsEntry object from a raw parsed deps dict.
Builds a dict of DepsEntry object from a raw parsed deps dict .
def BuildDepsentryDict(deps_dict):
  result = {}
  def AddDepsEntries(deps_subdict):
    for path, deps_url in deps_subdict.iteritems():
      if not result.has_key(path):
        url, revision = deps_url.split('@') if deps_url else (None, None)
        result[path] = DepsEntry(path, url, revision)
  AddDepsEntries(deps_dict['deps'])
  for deps_os in ['win', 'mac', 'unix', 'android', 'ios', 'unix']:
    AddDepsEntries(deps_dict['deps_os'].get(deps_os, {}))
  return result
def BuildDepsentryDict ( deps_dict ) : result = { } def AddDepsEntries ( deps_subdict ) : for path , deps_url in deps_subdict . iteritems ( ) : if not result . has_key ( path ) : url , revision = deps_url . split ( '@' ) if deps_url else ( None , None ) result [ path ] = DepsEntry ( path , url , revision ) AddDepsEntries ( deps_dict [ 'deps' ] ) for deps_os in [ 'win' , 'mac' , 'unix' , 'android' , 'ios' , 'unix' ] : AddDepsEntries ( deps_dict [ 'deps_os' ] . get ( deps_os , { } ) ) return result
Builds a dict of DepsEntry object from a raw parsed deps dict.
Builds a dict of DepsEntry object from a raw parsed deps dict .
"""Builds a dict of DepsEntry object from a raw parsed deps dict."""
deps_dict