/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/git/git_remote_helper.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:
29
29
from ..controldir import ControlDir
30
30
from ..errors import NotBranchError, NoRepositoryPresent
31
31
from ..repository import InterRepository
32
 
from ..sixish import viewitems
33
32
from ..transport import get_transport_from_path
34
33
 
35
34
from . import (
121
120
        object_store = get_object_store(repo)
122
121
        with object_store.lock_read():
123
122
            refs = get_refs_container(self.remote_dir, object_store)
124
 
            for ref, git_sha1 in viewitems(refs.as_dict()):
 
123
            for ref, git_sha1 in refs.as_dict().items():
125
124
                ref = ref.replace(b"~", b"_")
126
125
                outf.write(b"%s %s\n" % (git_sha1, ref))
127
126
            outf.write(b"\n")