(filename, source)
return dep
Create dependency info.

  Args:
    filename: Filename for source.
    source: File-like object containing source.

  Returns:
    A DependencyInfo object with provides and requires filled.
Create dependency info.
Create dependency info .
def CreateDependencyInfo(filename, source):
  """Create dependency info.

  Args:
    filename: Filename for source.
    source: File-like object containing source.

  Returns:
    A DependencyInfo object with provides and requires filled.
  """
  dep = DependencyInfo(filename)
  for line in source:
    if re.match(req_regex, line):
      dep.requires.append(re.search(req_regex, line).group(1))
    if re.match(prov_regex, line):
      dep.provides.append(re.search(prov_regex, line).group(1))
  return dep
def CreateDependencyInfo ( filename , source ) : dep = DependencyInfo ( filename ) for line in source : if re . match ( req_regex , line ) : dep . requires . append ( re . search ( req_regex , line ) . group ( 1 ) ) if re . match ( prov_regex , line ) : dep . provides . append ( re . search ( prov_regex , line ) . group ( 1 ) ) return dep