mirror of https://github.com/tqdm/tqdm.git
Update trange docstring to reflect using range on py3
This commit is contained in:
parent
8962c1aef2
commit
19c6f5416c
2
tqdm.py
2
tqdm.py
|
@ -96,7 +96,7 @@ def tqdm(iterable, desc='', total=None, leave=False, mininterval=0.5, miniters=1
|
||||||
sp.print_status(prefix + format_meter(n, total, cur_t-start_t))
|
sp.print_status(prefix + format_meter(n, total, cur_t-start_t))
|
||||||
|
|
||||||
def trange(*args, **kwargs):
|
def trange(*args, **kwargs):
|
||||||
"""A shortcut for writing tqdm(xrange)"""
|
"""A shortcut for writing tqdm(range()) on py3 or tqdm(xrange()) on py2"""
|
||||||
try:
|
try:
|
||||||
f = xrange
|
f = xrange
|
||||||
except NameError:
|
except NameError:
|
||||||
|
|
Loading…
Reference in New Issue