OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 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 import json | 6 import json |
7 import logging | 7 import logging |
8 import optparse | 8 import optparse |
9 import os | 9 import os |
10 import sys | 10 import sys |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 except ValueError: | 58 except ValueError: |
59 print output | 59 print output |
60 if total != 7: | 60 if total != 7: |
61 print >> sys.stderr, 'Unexpected length: %d' % total | 61 print >> sys.stderr, 'Unexpected length: %d' % total |
62 return 1 | 62 return 1 |
63 return 0 | 63 return 0 |
64 | 64 |
65 | 65 |
66 if __name__ == '__main__': | 66 if __name__ == '__main__': |
67 sys.exit(main()) | 67 sys.exit(main()) |
OLD | NEW |