~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/ui/text.py

  • Committer: Martin Pool
  • Date: 2006-08-10 01:16:16 UTC
  • mto: (1904.1.2 0.9)
  • mto: This revision was merged to the branch mainline in revision 1913.
  • Revision ID: mbp@sourcefrog.net-20060810011616-d74881eba696e746
compare_trees is deprecated in 0.9 not 0.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
"""Text UI, write output to the console.
20
20
"""
21
21
 
 
22
import getpass
22
23
import sys
23
24
 
24
 
from bzrlib.lazy_import import lazy_import
25
 
lazy_import(globals(), """
26
 
import getpass
27
 
 
28
 
from bzrlib import (
29
 
    progress,
30
 
    )
31
 
""")
32
 
 
33
 
from bzrlib.symbol_versioning import (
34
 
    deprecated_method,
35
 
    zero_eight,
36
 
    )
 
25
import bzrlib.progress
 
26
from bzrlib.symbol_versioning import (deprecated_method, 
 
27
        zero_eight)
37
28
from bzrlib.ui import CLIUIFactory
38
29
 
39
30
 
70
61
        """See UIFactory.nested_progress_bar()."""
71
62
        # this in turn is abstract, and creates either a tty or dots
72
63
        # bar depending on what we think of the terminal
73
 
        return progress.ProgressBar()
 
64
        return bzrlib.progress.ProgressBar()
74
65
 
75
66
    def get_password(self, prompt='', **kwargs):
76
67
        """Prompt the user for a password.
95
86
        may return a tty or dots bar depending on the terminal.
96
87
        """
97
88
        if self._progress_bar_stack is None:
98
 
            self._progress_bar_stack = progress.ProgressBarStack(
 
89
            self._progress_bar_stack = bzrlib.progress.ProgressBarStack(
99
90
                klass=self._bar_type)
100
91
        return self._progress_bar_stack.get_nested()
101
92