parameters: (filename, source)
return_statement: return dep
docstring: Create dependency info.
  
    Args:
      filename: Filename for source.
      source: File-like object containing source.
  
    Returns:
      A DependencyInfo object with provides and requires filled.
docstring_summary: Create dependency info.
docstring_tokens: Create dependency info .
function: 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
function_tokens: 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