Functions
parse_dependency_file Namespace Reference

Functions

def parse_dependency_file (filename, find_it)
 

Function Documentation

def parse_dependency_file.parse_dependency_file (   filename,
  find_it 
)

Definition at line 11 of file parse_dependency_file.py.

11 def parse_dependency_file (filename, find_it):
12  d_file = open (filename, "r")
13  result = []
14 
15  line = " "
16  while line != "":
17  line = d_file.readline()
18  line_list = string.split(line, " ")
19  for item in line_list:
20  if regex.match("^.*" + find_it + ".*$", item) != -1:
21  result.append (item)
22  d_file.close()
23 
24  return result
def parse_dependency_file(filename, find_it)