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

  • Committer: Jelmer Vernooij
  • Date: 2020-02-21 04:28:46 UTC
  • mfrom: (7494 work)
  • mto: This revision was merged to the branch mainline in revision 7496.
  • Revision ID: jelmer@jelmer.uk-20200221042846-r8lzqu0jetkw772i
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""The core state needed to make use of bzr is managed here."""
18
18
 
19
 
from __future__ import absolute_import
20
 
 
21
19
__all__ = [
22
20
    'BzrLibraryState',
23
21
    ]
24
22
 
25
23
 
 
24
import contextlib
 
25
 
 
26
 
26
27
import breezy
27
28
from .lazy_import import lazy_import
28
29
lazy_import(globals(), """
29
30
from breezy import (
30
 
    cleanup,
31
31
    config,
32
32
    osutils,
33
33
    symbol_versioning,
89
89
        # isolation within the same interpreter.  It's not reached on normal
90
90
        # in-process run_bzr calls.  If it's broken, we expect that
91
91
        # TestRunBzrSubprocess may fail.
92
 
        self.exit_stack = cleanup.ExitStack()
 
92
        self.exit_stack = contextlib.ExitStack()
93
93
 
94
94
        if breezy.version_info[3] == 'final':
95
95
            self.exit_stack.callback(