Rev 3008: More formatting corrections. in http://people.ubuntu.com/~robertc/baz2.0/nested-pb
Robert Collins
robertc at robertcollins.net
Mon Nov 19 19:14:03 GMT 2007
At http://people.ubuntu.com/~robertc/baz2.0/nested-pb
------------------------------------------------------------
revno: 3008
revision-id:robertc at robertcollins.net-20071119191346-42ifg0e154gwbain
parent: robertc at robertcollins.net-20071119004403-9x0c09udkopvy3ww
committer: Robert Collins <robertc at robertcollins.net>
branch nick: trivialities
timestamp: Tue 2007-11-20 06:13:46 +1100
message:
More formatting corrections.
modified:
bzrlib/progress.py progress.py-20050610070202-df9faaab791964c0
=== modified file 'bzrlib/progress.py'
--- a/bzrlib/progress.py 2007-11-19 00:44:03 +0000
+++ b/bzrlib/progress.py 2007-11-19 19:13:46 +0000
@@ -298,7 +298,6 @@
self.child_fraction = 0
self._have_output = False
-
def throttle(self, old_msg):
"""Return True if the bar was updated too recently"""
# time.time consistently takes 40/4000 ms = 0.01 ms.
@@ -320,7 +319,7 @@
return False
def tick(self):
- self.update(self.last_msg, self.last_cnt, self.last_total,
+ self.update(self.last_msg, self.last_cnt, self.last_total,
self.child_fraction)
def child_update(self, message, current, total):
@@ -438,7 +437,7 @@
self._have_output = True
#self.to_file.flush()
- def clear(self):
+ def clear(self):
if self._have_output:
self.to_file.write('\r%s\r' % (' ' * (self.width - 1)))
self._have_output = False
More information about the bazaar-commits
mailing list