OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 3 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 # | 6 # |
7 | 7 |
8 import sys | 8 import sys |
9 import os | 9 import os |
10 import textwrap | 10 import textwrap |
11 from subprocess import Popen, PIPE | 11 from subprocess import Popen, PIPE |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 return 1 | 120 return 1 |
121 for line in sys.stdin: | 121 for line in sys.stdin: |
122 if line.startswith('ncval: '): | 122 if line.startswith('ncval: '): |
123 line = line[7:].strip() | 123 line = line[7:].strip() |
124 _explain_problem(sys.argv[1], *_parse_report(line)) | 124 _explain_problem(sys.argv[1], *_parse_report(line)) |
125 return 0 | 125 return 0 |
126 | 126 |
127 | 127 |
128 if __name__ == '__main__': | 128 if __name__ == '__main__': |
129 sys.exit(main(sys.argv)) | 129 sys.exit(main(sys.argv)) |
OLD | NEW |