/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/_annotator_py.py

  • Committer: Martin
  • Date: 2017-06-04 18:09:30 UTC
  • mto: This revision was merged to the branch mainline in revision 6653.
  • Revision ID: gzlist@googlemail.com-20170604180930-zpcenvzu13lilaax
Apply 2to3 xrange fix and fix up with sixish range

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    osutils,
32
32
    ui,
33
33
    )
 
34
from .sixish import (
 
35
    range,
 
36
    )
34
37
 
35
38
 
36
39
class Annotator(object):
183
186
            par_sub = parent_annotations[parent_idx:parent_idx + match_len]
184
187
            if ann_sub == par_sub:
185
188
                continue
186
 
            for idx in xrange(match_len):
 
189
            for idx in range(match_len):
187
190
                ann = ann_sub[idx]
188
191
                par_ann = par_sub[idx]
189
192
                ann_idx = lines_idx + idx