/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/_dirstate_helpers_py.py

  • Committer: Martin
  • Date: 2017-05-25 01:35:55 UTC
  • mto: This revision was merged to the branch mainline in revision 6637.
  • Revision ID: gzlist@googlemail.com-20170525013555-lepzczdnzb9r272j
Apply 2to3 next fixer and make compatible

Show diffs side-by-side

added added

removed removed

Lines of Context:
262
262
        # them. Grab an straight iterator over the fields. (We use an
263
263
        # iterator because we don't want to do a lot of additions, nor
264
264
        # do we want to do a lot of slicing)
265
 
        next = iter(fields).next
 
265
        _iter = iter(fields)
 
266
        # Get a local reference to the compatible next method
 
267
        next = getattr(_iter, '__next__', None)
 
268
        if next is None:
 
269
            next = _iter.next
266
270
        # Move the iterator to the current position
267
271
        for x in xrange(cur):
268
272
            next()