/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 bzrlib/ui/text.py

merge trailing whitespace removal

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
                 stderr=None):
48
48
        """Create a TextUIFactory.
49
49
 
50
 
        :param bar_type: The type of progress bar to create. It defaults to 
 
50
        :param bar_type: The type of progress bar to create. It defaults to
51
51
                         letting the bzrlib.progress.ProgressBar factory auto
52
52
                         select.   Deprecated.
53
53
        """
62
62
    def prompt(self, prompt):
63
63
        """Emit prompt on the CLI."""
64
64
        self.stdout.write(prompt)
65
 
        
 
65
 
66
66
    def clear_term(self):
67
67
        """Prepare the terminal for output.
68
68
 
71
71
        # XXX: If this is preparing to write to stdout, but that's for example
72
72
        # directed into a file rather than to the terminal, and the progress
73
73
        # bar _is_ going to the terminal, we shouldn't need
74
 
        # to clear it.  We might need to separately check for the case of 
 
74
        # to clear it.  We might need to separately check for the case of
75
75
        self._progress_view.clear()
76
76
 
77
77
    def note(self, msg):
81
81
 
82
82
    def report_transport_activity(self, transport, byte_count, direction):
83
83
        """Called by transports as they do IO.
84
 
        
 
84
 
85
85
        This may update a progress bar, spinner, or similar display.
86
86
        By default it does nothing.
87
87
        """
101
101
 
102
102
class TextProgressView(object):
103
103
    """Display of progress bar and other information on a tty.
104
 
    
105
 
    This shows one line of text, including possibly a network indicator, spinner, 
 
104
 
 
105
    This shows one line of text, including possibly a network indicator, spinner,
106
106
    progress bar, message, etc.
107
107
 
108
108
    One instance of this is created and held by the UI, and fed updates when a
203
203
 
204
204
    def show_transport_activity(self, byte_count):
205
205
        """Called by transports as they do IO.
206
 
        
 
206
 
207
207
        This may update a progress bar, spinner, or similar display.
208
208
        By default it does nothing.
209
209
        """