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

Unified Diff: gclient_utils.py

Issue 7101012: Remove empty lines from the output while using --jobs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: '' Created 9 years, 7 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: gclient_utils.py
===================================================================
--- gclient_utils.py (revision 87529)
+++ gclient_utils.py (working copy)
@@ -362,7 +362,8 @@
obj[0] += out
while '\n' in obj[0]:
line, remaining = obj[0].split('\n', 1)
- new_fileobj.old_annotated_write('%d>%s\n' % (index, line))
+ if line:
+ new_fileobj.old_annotated_write('%d>%s\n' % (index, line))
obj[0] = remaining
def full_flush():
@@ -383,7 +384,8 @@
# Don't keep the lock while writting. Will append \n when it shouldn't.
for orphan in orphans:
- new_fileobj.old_annotated_write('%d>%s\n' % (orphan[0], orphan[1]))
+ if orphan[1]:
+ new_fileobj.old_annotated_write('%d>%s\n' % (orphan[0], orphan[1]))
new_fileobj.write = annotated_write
new_fileobj.full_flush = full_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