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

  • Committer: Jelmer Vernooij
  • Date: 2017-05-30 19:32:13 UTC
  • mfrom: (6637 work)
  • mto: This revision was merged to the branch mainline in revision 6639.
  • Revision ID: jelmer@jelmer.uk-20170530193213-qm21s6dc7dln237t
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
633
633
            return []
634
634
        if path is None:
635
635
            path = self.id2path(file_id)
636
 
        prefs = self.iter_search_rules([path], filter_pref_names).next()
 
636
        prefs = next(self.iter_search_rules([path], filter_pref_names))
637
637
        stk = filters._get_filter_stack_for(prefs)
638
638
        if 'filters' in debug.debug_flags:
639
639
            trace.note(gettext("*** {0} content-filter: {1} => {2!r}").format(path,prefs,stk))
723
723
        :return: The input path adjusted to account for existing elements
724
724
        that match case insensitively.
725
725
        """
726
 
        return self._yield_canonical_inventory_paths([path]).next()
 
726
        return next(self._yield_canonical_inventory_paths([path]))
727
727
 
728
728
    def _yield_canonical_inventory_paths(self, paths):
729
729
        for path in paths:
1416
1416
            If has_more is False, path and ie will be None.
1417
1417
        """
1418
1418
        try:
1419
 
            path, ie = iterator.next()
 
1419
            path, ie = next(iterator)
1420
1420
        except StopIteration:
1421
1421
            return False, None, None
1422
1422
        else: