def get_diff_files(testfile): """Read the diff testfile and build a list of files with a diff. """ infile = libtest.open_filein(testfile, 'rb') filepaths = [] for line in infile: filepaths.append(line[:-1]) infile.close() return filepaths
def get_diff_files(testfile): """Read the diff testfile and build a list of files with a diff. """ # infile = libtest.open_filein(testfile, 'rb') # changed for version 3.2 infile = libtest.open_filein(testfile, 'r') filepaths = [] for line in infile: filepaths.append(line[:-1]) infile.close() return filepaths