| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Outputs on both stderr and stdout.""" | 6 """Outputs on both stderr and stdout.""" |
| 7 | 7 |
| 8 import re | 8 import re |
| 9 import sys | 9 import sys |
| 10 import time | 10 import time |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 pipe.write('\n') | 34 pipe.write('\n') |
| 35 elif command == 'flush': | 35 elif command == 'flush': |
| 36 pipe.flush() | 36 pipe.flush() |
| 37 else: | 37 else: |
| 38 return 1 | 38 return 1 |
| 39 return 0 | 39 return 0 |
| 40 | 40 |
| 41 | 41 |
| 42 if __name__ == '__main__': | 42 if __name__ == '__main__': |
| 43 sys.exit(main()) | 43 sys.exit(main()) |
| OLD | NEW |