Print a newline after leave=True. Closes issue #6

This commit is contained in:
Noam Yorav-Raphael 2014-01-16 00:19:48 +02:00
parent 2ad667d338
commit da5fdbf7c0
1 changed files with 1 additions and 0 deletions

View File

@ -101,6 +101,7 @@ def tqdm(iterable, desc='', total=None, leave=False, file=sys.stderr,
if last_print_n < n:
cur_t = time.time()
sp.print_status(prefix + format_meter(n, total, cur_t-start_t))
file.write('\n')
def trange(*args, **kwargs):