~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_patiencediff_py.py

  • Committer: Martin Pool
  • Date: 2008-05-08 04:12:06 UTC
  • mto: This revision was merged to the branch mainline in revision 3415.
  • Revision ID: mbp@sourcefrog.net-20080508041206-tkrr8ucmcyrlzkum
Some review cleanups for assertion removal

Show diffs side-by-side

added added

removed removed

Lines of Context:
196
196
    # For consistency sake, make sure all matches are only increasing
197
197
    next_a = -1
198
198
    next_b = -1
199
 
    for a,b,match_len in answer:
 
199
    for (a, b, match_len) in answer:
200
200
        if a < next_a:
201
201
            raise ValueError('Non increasing matches for a')
202
202
        if b < next_b:
203
 
            raise ValueError('Not increasing matches for b')
 
203
            raise ValueError('Non increasing matches for b')
204
204
        next_a = a + match_len
205
205
        next_b = b + match_len
206
206