From a25b4d25d9af9e887e90b81f959fbfa11a422358 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Fri, 25 Dec 2015 11:15:34 +0100 Subject: [PATCH] Fix typos --- README.rst | 8 ++++---- tqdm/_tqdm.py | 4 ++-- tqdm/tests/tests_tqdm.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.rst b/README.rst index 78433be4..f5a747c9 100644 --- a/README.rst +++ b/README.rst @@ -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 diff --git a/tqdm/_tqdm.py b/tqdm/_tqdm.py index 9b285603..e93c286a 100644 --- a/tqdm/_tqdm.py +++ b/tqdm/_tqdm.py @@ -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]. diff --git a/tqdm/tests/tests_tqdm.py b/tqdm/tests/tests_tqdm.py index 84ea1a8e..687ccdeb 100644 --- a/tqdm/tests/tests_tqdm.py +++ b/tqdm/tests/tests_tqdm.py @@ -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,