~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/library_state.py

  • Committer: Patch Queue Manager
  • Date: 2011-09-08 11:01:15 UTC
  • mfrom: (6123.1.16 gpg-typo)
  • Revision ID: pqm@cupuasso-20110908110115-gbb9benwkdksvzk5
(jelmer) Fix a typo (invalid format identifier) in an error message in
 bzrlib.gpg. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
import sys
24
24
 
25
25
import bzrlib
26
 
from bzrlib.lazy_import import lazy_import
27
 
lazy_import(globals(), """
28
 
from bzrlib import config
29
 
""")
30
26
 
31
27
 
32
28
class BzrLibraryState(object):
65
61
        """
66
62
        self._ui = ui
67
63
        self._trace = trace
68
 
        # There is no overrides by default, they are set later when the command
69
 
        # arguments are parsed.
70
 
        self.cmdline_overrides = config.CommandLineSection()
71
64
        self.started = False
72
65
 
73
66
    def __enter__(self):
76
69
        return self # This is bound to the 'as' clause in a with statement.
77
70
 
78
71
    def _start(self):
79
 
        """Do all initialization."""
 
72
        """Do all initialization.
 
73
        """        
80
74
        # NB: This function tweaks so much global state it's hard to test it in
81
75
        # isolation within the same interpreter.  It's not reached on normal
82
76
        # in-process run_bzr calls.  If it's broken, we expect that