Update trange docstring to reflect using range on py3

This commit is contained in:
Noam Yorav-Raphael 2014-01-11 23:33:42 +02:00
parent 8962c1aef2
commit 19c6f5416c
1 changed files with 1 additions and 1 deletions

View File

@ -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: