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