(a, b, filename)
return difflib.unified_diff(a, b, filename, filename,
                                "(original)", "(refactored)",
                                lineterm="")
Return a unified diff of two strings.
Return a unified diff of two strings.
Return a unified diff of two strings .
def diff_texts(a, b, filename):
    """Return a unified diff of two strings."""
    a = a.splitlines()
    b = b.splitlines()
    return difflib.unified_diff(a, b, filename, filename,
                                "(original)", "(refactored)",
                                lineterm="")
def diff_texts ( a , b , filename ) : a = a . splitlines ( ) b = b . splitlines ( ) return difflib . unified_diff ( a , b , filename , filename , "(original)" , "(refactored)" , lineterm = "" )