/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/index.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:
750
750
                while dicts:
751
751
                    key_dict = dicts.pop(-1)
752
752
                    # can't be empty or would not exist
753
 
                    item, value = key_dict.iteritems().next()
 
753
                    item, value = next(key_dict.iteritems())
754
754
                    if isinstance(value, dict):
755
755
                        # push keys
756
756
                        dicts.extend(key_dict.itervalues())
1726
1726
                while dicts:
1727
1727
                    key_dict = dicts.pop(-1)
1728
1728
                    # can't be empty or would not exist
1729
 
                    item, value = key_dict.iteritems().next()
 
1729
                    item, value = next(key_dict.iteritems())
1730
1730
                    if isinstance(value, dict):
1731
1731
                        # push keys
1732
1732
                        dicts.extend(key_dict.itervalues())