mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-09 23:10:24 +01:00
Merge pull request #655 from efiop/master
progress: don't print new line
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