~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to progress.py

  • Committer: Aaron Bentley
  • Date: 2008-06-03 14:46:55 UTC
  • Revision ID: aaron@aaronbentley.com-20080603144655-8v3zq81xmlwefg2d
Fix behavior when TERM is set to nothing

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
17
 
18
18
import sys
 
19
import datetime
 
20
from bzrlib.progress import ProgressBar
19
21
 
20
22
class Progress(object):
21
23
    def __init__(self, units, current, total=None):