/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-02-14 03:16:54 UTC
  • mfrom: (7479.2.3 no-more-python2)
  • Revision ID: breezy.the.bot@gmail.com-20200214031654-bp1xtv2jr9nmhto3
Drop python2 support.

Merged from https://code.launchpad.net/~jelmer/brz/no-more-python2/+merge/378694

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
    osutils,
34
34
    ui,
35
35
    )
36
 
from .sixish import (
37
 
    range,
38
 
    viewitems,
39
 
    )
40
36
 
41
37
 
42
38
class Annotator(object):
95
91
                    vf_keys_needed.add(key)
96
92
            needed_keys = set()
97
93
            next_parent_map.update(self._vf.get_parent_map(parent_lookup))
98
 
            for key, parent_keys in viewitems(next_parent_map):
 
94
            for key, parent_keys in next_parent_map.items():
99
95
                if parent_keys is None:  # No graph versionedfile
100
96
                    parent_keys = ()
101
97
                    next_parent_map[key] = ()