File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ progressbar Package
44:mod: `progressbar ` Package
55--------------------------
66
7- .. automodule :: progressbar.__init__
7+ .. automodule :: progressbar
88 :members:
99 :undoc-members:
1010 :show-inheritance:
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ class ProgressBar(object):
7979 '''The ProgressBar class which updates and prints the bar.
8080
8181 A common way of using it is like:
82+
8283 >>> pbar = ProgressBar().start()
8384 >>> for i in range(100):
8485 ... pbar.update(i+1)
@@ -87,6 +88,7 @@ class ProgressBar(object):
8788 >>> pbar.finish()
8889
8990 You can also use a ProgressBar as an iterator:
91+
9092 >>> progress = ProgressBar()
9193 >>> some_iterable = range(100)
9294 >>> for i in progress(some_iterable):
@@ -312,6 +314,7 @@ def start(self):
312314 '''Starts measuring time, and prints the bar at 0%.
313315
314316 It returns self so you can use it like this:
317+
315318 >>> pbar = ProgressBar().start()
316319 >>> for i in range(100):
317320 ... # do something
You can’t perform that action at this time.
0 commit comments