progress: don't print new line

Fixes #444

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-04-15 11:52:59 +03:00
parent 092486dda0
commit 9f8f9ab550
2 changed files with 0 additions and 6 deletions
-4
View File
@@ -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:
-2
View File
@@ -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))