Rev 3007: Minor PEP8 changes. in http://people.ubuntu.com/~robertc/baz2.0/nested-pb
Robert Collins
robertc at robertcollins.net
Mon Nov 19 00:44:14 GMT 2007
At http://people.ubuntu.com/~robertc/baz2.0/nested-pb
------------------------------------------------------------
revno: 3007
revision-id:robertc at robertcollins.net-20071119004403-9x0c09udkopvy3ww
parent: pqm at pqm.ubuntu.com-20071117180742-59zhz30s7839y41j
committer: Robert Collins <robertc at robertcollins.net>
branch nick: nested-pb
timestamp: Mon 2007-11-19 11:44:03 +1100
message:
Minor PEP8 changes.
modified:
bzrlib/progress.py progress.py-20050610070202-df9faaab791964c0
bzrlib/tests/test_progress.py test_progress.py-20060308160359-978c397bc79b7fda
=== modified file 'bzrlib/progress.py'
--- a/bzrlib/progress.py 2007-10-29 04:05:13 +0000
+++ b/bzrlib/progress.py 2007-11-19 00:44:03 +0000
@@ -336,7 +336,7 @@
self.last_msg = ''
self.tick()
- def update(self, msg, current_cnt=None, total_cnt=None,
+ def update(self, msg, current_cnt=None, total_cnt=None,
child_fraction=0):
"""Update and redraw progress bar."""
if msg is None:
=== modified file 'bzrlib/tests/test_progress.py'
--- a/bzrlib/tests/test_progress.py 2007-07-11 06:47:30 +0000
+++ b/bzrlib/tests/test_progress.py 2007-11-19 00:44:03 +0000
@@ -29,12 +29,14 @@
class FakeStack:
+
def __init__(self, top):
self.__top = top
def top(self):
return self.__top
+
class InstrumentedProgress(TTYProgressBar):
"""TTYProgress variant that tracks outcomes"""
@@ -63,6 +65,7 @@
class TestProgress(TestCase):
+
def setUp(self):
q = DummyProgress()
self.top = ChildProgress(_stack=FakeStack(q))
More information about the bazaar-commits
mailing list