~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/progress.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-11-02 08:06:11 UTC
  • mfrom: (2095.4.6 test-progress)
  • Revision ID: pqm@pqm.ubuntu.com-20061102080611-5462d2713bf4bc45
(mbp) Better test progress bar

Show diffs side-by-side

added added

removed removed

Lines of Context:
432
432
            bar_str = ''
433
433
 
434
434
        m = spin_str + bar_str + self.last_msg + count_str + pct_str + eta_str
435
 
 
436
 
        assert len(m) < self.width
437
 
        self.to_file.write('\r' + m.ljust(self.width - 1))
 
435
        self.to_file.write('\r%-*.*s' % (self.width - 1, self.width - 1, m))
438
436
        self._have_output = True
439
437
        #self.to_file.flush()
440
438