Skip to content

Commit 83a3e65

Browse files
committed
updated docs
1 parent e98b28b commit 83a3e65

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

docs/progressbar.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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:

progressbar/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)