Merge pull request #655 from efiop/master

progress: don't print new line
This commit is contained in:
Ruslan Kuprieiev
2018-04-15 12:09:06 +03:00
committed by GitHub
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))