Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: mojo/tools/mopy/transitive_hash.py

Issue 707893005: Add mojo/tools/mopy with paths and version utilities (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698