mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-26 15:28:28 +01:00
progress: don't print new line
Fixes #444 Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -47,10 +47,6 @@ class Progress(object):
|
||||
|
||||
self._n_finished += 1
|
||||
|
||||
def finish(self):
|
||||
if sys.stdout.isatty():
|
||||
print()
|
||||
|
||||
def _bar(self, target_name, current, total):
|
||||
"""
|
||||
Make a progress bar out of info, which looks like:
|
||||
|
||||
@@ -129,7 +129,5 @@ def map_progress(func, targets, n_threads):
|
||||
ret = pool.map(wrapper, targets)
|
||||
except Exception as exc:
|
||||
raise
|
||||
finally:
|
||||
progress.finish()
|
||||
|
||||
return list(zip(targets, ret))
|
||||
|
||||
Reference in New Issue
Block a user