~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_patiencediff_py.py

remove all trailing whitespace from bzr source

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
        else:
50
50
            index[line]= i
51
51
    # make btoa[i] = position of line i in a, unless
52
 
    # that line doesn't occur exactly once in both, 
 
52
    # that line doesn't occur exactly once in both,
53
53
    # in which case it's set to None
54
54
    btoa = [None] * len(b)
55
55
    index2 = {}
79
79
            k = len(stacks)
80
80
        # as an optimization, check if the next line comes right after
81
81
        # the previous line, because usually it does
82
 
        elif stacks and stacks[k] < apos and (k == len(stacks) - 1 or 
 
82
        elif stacks and stacks[k] < apos and (k == len(stacks) - 1 or
83
83
                                              stacks[k+1] > apos):
84
84
            k += 1
85
85
        else:
230
230
        >>> s.get_matching_blocks()
231
231
        [(0, 0, 2), (3, 2, 2), (5, 4, 0)]
232
232
        """
233
 
        # jam 20060525 This is the python 2.4.1 difflib get_matching_blocks 
 
233
        # jam 20060525 This is the python 2.4.1 difflib get_matching_blocks
234
234
        # implementation which uses __helper. 2.4.3 got rid of helper for
235
235
        # doing it inline with a queue.
236
236
        # We should consider doing the same for recurse_matches