equal
deleted
inserted
replaced
27 if not a[0] or not b[0]: |
27 if not a[0] or not b[0]: |
28 raise MemoryError |
28 raise MemoryError |
29 count = lib.bdiff_diff(a[0], an, b[0], bn, l) |
29 count = lib.bdiff_diff(a[0], an, b[0], bn, l) |
30 if count < 0: |
30 if count < 0: |
31 raise MemoryError |
31 raise MemoryError |
32 rl = [None] * count |
32 rl = [(0, 0, 0, 0)] * count |
33 h = l.next |
33 h = l.next |
34 i = 0 |
34 i = 0 |
35 while h: |
35 while h: |
36 rl[i] = (h.a1, h.a2, h.b1, h.b2) |
36 rl[i] = (h.a1, h.a2, h.b1, h.b2) |
37 h = h.next |
37 h = h.next |