Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1918)

Unified Diff: third_party/repo/progress.py

Issue 896006: Write the progress bar to stdout, not stderr (Closed)
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/repo/progress.py
diff --git a/third_party/repo/progress.py b/third_party/repo/progress.py
index 08392fcdf29939b0e0610c3738bc11e290f95c14..860d9d01125237f06d72c72c5dce94b325209e68 100644
--- a/third_party/repo/progress.py
+++ b/third_party/repo/progress.py
@@ -35,36 +35,36 @@ class Progress(object):
return
if self._total <= 0:
- sys.stderr.write('\r%s: %d, ' % (
+ sys.stdout.write('\r%s: %d, ' % (
self._title,
self._done))
- sys.stderr.flush()
+ sys.stdout.flush()
else:
p = (100 * self._done) / self._total
if self._lastp != p:
self._lastp = p
- sys.stderr.write('\r%s: %3d%% (%d/%d) ' % (
+ sys.stdout.write('\r%s: %3d%% (%d/%d) ' % (
self._title,
p,
self._done,
self._total))
- sys.stderr.flush()
+ sys.stdout.flush()
def end(self):
if not self._show:
return
if self._total <= 0:
- sys.stderr.write('\r%s: %d, done. \n' % (
+ sys.stdout.write('\r%s: %d, done. \n' % (
self._title,
self._done))
- sys.stderr.flush()
+ sys.stdout.flush()
else:
p = (100 * self._done) / self._total
- sys.stderr.write('\r%s: %3d%% (%d/%d), done. \n' % (
+ sys.stdout.write('\r%s: %3d%% (%d/%d), done. \n' % (
self._title,
p,
self._done,
self._total))
- sys.stderr.flush()
+ sys.stdout.flush()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698