Fix typos

This commit is contained in:
Casper da Costa-Luis 2015-12-25 11:15:34 +01:00 committed by Casper da Costa-Luis
parent 1ea20bcb76
commit a25b4d25d9
3 changed files with 7 additions and 7 deletions

View File

@ -33,7 +33,7 @@ By comparison, the well established
an 800ns/iter overhead.
In addition to its low overhead, ``tqdm`` uses smart algorithms to predict
the remaining time and to skip unneccessary iteration displays, which allows
the remaining time and to skip unnecessary iteration displays, which allows
for a negligible overhead in most cases.
``tqdm`` works on any platform (Linux/Windows/Mac), in any console or in a
@ -119,7 +119,7 @@ but in this case don't forget to ``close()`` at the end:
.. code:: python
pbar = tqdm(total=100):
pbar = tqdm(total=100)
for i in range(10):
pbar.update(10)
pbar.close()
@ -133,7 +133,7 @@ Documentation
class tqdm(object):
"""
Decorate an iterable object, returning an iterator which acts exactly
like the orignal iterable, but prints a dynamically updating
like the original iterable, but prints a dynamically updating
progressbar every time a value is requested.
"""
@ -351,7 +351,7 @@ Nested progress bars
~~~~~~~~~~~~~~~~~~~~
``tqdm`` supports nested progress bars, you just need to specify the
`nested=True` argument for all tqdm instanciation except the **outermost**
`nested=True` argument for all tqdm instantiations except the **outermost**
bar. Here's an example:
.. code:: python

View File

@ -207,7 +207,7 @@ def StatusPrinter(file):
class tqdm(object):
"""
Decorate an iterable object, returning an iterator which acts exactly
like the orignal iterable, but prints a dynamically updating
like the original iterable, but prints a dynamically updating
progressbar every time a value is requested.
"""
def __init__(self, iterable=None, desc=None, total=None, leave=False,
@ -274,7 +274,7 @@ class tqdm(object):
`tqdm` [default: False]. Allows display of multiple, nested
progress bars.
gui : bool, optional
WARNING: internal paramer - do not use.
WARNING: internal parameter - do not use.
Use tqdm_gui(...) instead. If set, will attempt to use
matplotlib animations for a graphical output [default: false].

View File

@ -566,7 +566,7 @@ def test_nested():
RE_nested = re.compile(r'((\x1b\[A|\r|\n)+((outer|inner) loop:\s+\d+%|\s{3,6})?)') # NOQA
RE_nested2 = re.compile(r'((\x1b\[A|\r|\n)+((outer0|inner1|inner2) loop:\s+\d+%|\s{3,6})?)') # NOQA
# Artifically test nested loop printing
# Artificially test nested loop printing
# Without leave
our_file = StringIO()
t = tqdm(total=2, file=our_file, miniters=1, mininterval=0,