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