/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/progress.py

  • Committer: Martin Pool
  • Date: 2005-06-10 07:17:04 UTC
  • Revision ID: mbp@sourcefrog.net-20050610071704-8f754cb63767dee4
doc

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
 
62
62
 
63
63
class Progress(object):
 
64
    """Description of progress through a task.
 
65
 
 
66
    Basically just a fancy tuple holding:
 
67
 
 
68
    units
 
69
        noun string describing what is being traversed, e.g.
 
70
        "balloons", "kB"
 
71
 
 
72
    current
 
73
        how many objects have been processed so far
 
74
 
 
75
    total
 
76
        total number of objects to process, if known.
 
77
    """
 
78
    
64
79
    def __init__(self, units, current, total=None):
65
80
        self.units = units
66
81
        self.current = current