/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/check.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:
36
36
 
37
37
from __future__ import absolute_import
38
38
 
 
39
import contextlib
 
40
 
39
41
from . import (
40
 
    cleanup,
41
42
    errors,
42
43
    )
43
44
from .controldir import ControlDir
101
102
    except errors.NotBranchError:
102
103
        base_tree = branch = repo = None
103
104
 
104
 
    with cleanup.ExitStack() as exit_stack:
 
105
    with contextlib.ExitStack() as exit_stack:
105
106
        needed_refs = {}
106
107
        if base_tree is not None:
107
108
            # If the tree is a lightweight checkout we won't see it in