| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import logging | 5 import logging |
| 6 import subprocess | 6 import subprocess |
| 7 import sys | 7 import sys |
| 8 | 8 |
| 9 # pylint: disable=E0611 | 9 # pylint: disable=E0611 |
| 10 from hashlib import sha256 | 10 from hashlib import sha256 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 for filename in argv[1:]: | 84 for filename in argv[1:]: |
| 85 try: | 85 try: |
| 86 print transitive_hash(filename), filename | 86 print transitive_hash(filename), filename |
| 87 except subprocess.CalledProcessError: | 87 except subprocess.CalledProcessError: |
| 88 print "ERROR", filename | 88 print "ERROR", filename |
| 89 rv = 1 | 89 rv = 1 |
| 90 return rv | 90 return rv |
| 91 | 91 |
| 92 if __name__ == '__main__': | 92 if __name__ == '__main__': |
| 93 sys.exit(main(sys.argv)) | 93 sys.exit(main(sys.argv)) |
| OLD | NEW |