| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 The Native Client 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 | 6 |
| 7 import hashlib | 7 import hashlib |
| 8 import string | 8 import string |
| 9 import sys | 9 import sys |
| 10 | 10 |
| 11 # usage: | 11 # usage: |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 except: | 56 except: |
| 57 ErrorOut("encountered an unexpected error") | 57 ErrorOut("encountered an unexpected error") |
| 58 else: | 58 else: |
| 59 ErrorOut("input hash is not from a binary file") | 59 ErrorOut("input hash is not from a binary file") |
| 60 | 60 |
| 61 if not count: | 61 if not count: |
| 62 ErrorOut("No file hashes given on input") | 62 ErrorOut("No file hashes given on input") |
| 63 | 63 |
| 64 # all files hashed with success | 64 # all files hashed with success |
| 65 sys.exit(0) | 65 sys.exit(0) |
| OLD | NEW |