def get_diff(original, fixed, file_name,<EOL>original_label='<STR_LIT>', fixed_label='<STR_LIT>'):
original, fixed = original.splitlines(True), fixed.splitlines(True)<EOL>newline = '<STR_LIT:\n>'<EOL>from difflib import unified_diff<EOL>diff = unified_diff(original, fixed,<EOL>os.path.join(original_label, file_name),<EOL>os.path.join(fixed_label, file_name),<EOL>lineterm=newline)<EOL>text = '<STR_LIT>'<EOL>for line in diff:<EOL><INDENT>text += line<EOL>if not line.endswith(newline):<EOL><INDENT>text += newline + r'<STR_LIT>' + newline<EOL><DEDENT><DEDENT>return text<EOL>
Return text of unified diff between original and fixed.