~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to progress.py

  • Committer: Robert Collins
  • Date: 2006-04-24 01:35:08 UTC
  • mto: (364.1.3 bzrtools)
  • mto: This revision was merged to the branch mainline in revision 366.
  • Revision ID: robertc@robertcollins.net-20060424013508-2d37e47814d9493e
Support importing into empty branches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
            return "%i of %i %s %.1f%%" % (self.current, self.total, self.units,
38
38
                                         self.percent)
39
39
        else:
40
 
            return "%i %s" (self.current, self.units)
 
40
            return "%i %s" (self.current, self.units) 
41
41
 
42
42
def show_progress(pi, prog):
43
43
    pi.update(prog.units, prog.current, prog.total)
44
 
 
 
44
        
45
45
def clear_progress_bar():
46
46
    sys.stderr.write('\r%s\r' % (' '*79))