~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/progress.py

  • Committer: Martin Pool
  • Date: 2010-01-15 04:17:57 UTC
  • mto: This revision was merged to the branch mainline in revision 5019.
  • Revision ID: mbp@sourcefrog.net-20100115041757-cd8pu9o5a511jc8q
Rip out most remaining uses of DummyProgressBar

Show diffs side-by-side

added added

removed removed

Lines of Context:
232
232
        self.to_messages_file.write('\n')
233
233
 
234
234
 
235
 
class DummyProgress(_BaseProgressBar):
 
235
class DummyProgress(object):
236
236
    """Progress-bar standin that does nothing.
237
237
 
238
 
    This can be used as the default argument for methods that
239
 
    take an optional progress indicator."""
 
238
    This was previously often constructed by application code if no progress
 
239
    bar was explicitly passed in.  That's no longer recommended: instead, just
 
240
    create a progress task from the ui_factory.  This class can be used in
 
241
    test code that needs to fake a progress task for some reason.
 
242
    """
240
243
 
241
244
    def tick(self):
242
245
        pass