From 9e890f92e96373f1d9be9c8483f7ed79149ccfe1 Mon Sep 17 00:00:00 2001 From: "dpranke@google.com" Date: Wed, 28 Oct 2009 01:32:29 +0000 Subject: [PATCH] Move the log message up a line to make sure it appears before the actual output. R=maruel@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/344007 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@30307 0039d316-1c4b-4281-b951-d872f2087c98 --- gclient_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gclient_utils.py b/gclient_utils.py index 8b4eeb2b57..913e8b13ae 100644 --- a/gclient_utils.py +++ b/gclient_utils.py @@ -220,11 +220,11 @@ def SubprocessCallAndFilter(command, while in_byte: if in_byte != "\r": if print_stdout: - sys.stdout.write(in_byte) if not print_messages: print("\n________ running \'%s\' in \'%s\'" % (' '.join(command), in_directory)) print_messages = True + sys.stdout.write(in_byte) if in_byte != "\n": in_line += in_byte if in_byte == "\n" and filter: