77
77
sequencematcher = difflib.SequenceMatcher
85
80
for group in sequencematcher(None,a,b).get_grouped_opcodes(n):
90
85
i1, i2, j1, j2 = group[0][1], group[-1][2], group[0][3], group[-1][4]
91
86
yield "@@ -%d,%d +%d,%d @@%s" % (i1+1, i2-i1, j1+1, j2-j1, lineterm)