コード例 #1
0
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
コード例 #2
0
ファイル: diff2_print.py プロジェクト: amremam2004/astyle
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