/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: 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:
23
23
    ]
24
24
 
25
25
 
 
26
import contextlib
 
27
 
 
28
 
26
29
import breezy
27
30
from .lazy_import import lazy_import
28
31
lazy_import(globals(), """
29
32
from breezy import (
30
 
    cleanup,
31
33
    config,
32
34
    osutils,
33
35
    symbol_versioning,
89
91
        # isolation within the same interpreter.  It's not reached on normal
90
92
        # in-process run_bzr calls.  If it's broken, we expect that
91
93
        # TestRunBzrSubprocess may fail.
92
 
        self.exit_stack = cleanup.ExitStack()
 
94
        self.exit_stack = contextlib.ExitStack()
93
95
 
94
96
        if breezy.version_info[3] == 'final':
95
97
            self.exit_stack.callback(