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

Side by Side Diff: tools/elf_checker.py

Issue 12450015: **/*.py: use /usr/bin/env to find python Base URL: https://chromium.googlesource.com/native_client/src/native_client@master
Patch Set: Created 7 years, 9 months 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
« no previous file with comments | « tools/elf.py ('k') | tools/elf_fuzzer.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/env python
2 2
3 # Copyright 2010 The Native Client Authors. All rights reserved. 3 # Copyright 2010 The Native Client Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can 4 # Use of this source code is governed by a BSD-style license that can
5 # be found in the LICENSE file. 5 # be found in the LICENSE file.
6 6
7 import getopt 7 import getopt
8 import sys 8 import sys
9 9
10 import elf 10 import elf
11 11
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 if attribute is None: 97 if attribute is None:
98 DumpSegments(elf_obj) 98 DumpSegments(elf_obj)
99 else: 99 else:
100 CheckSegments(elf_obj, attribute, segment, flags, divisor, remainder) 100 CheckSegments(elf_obj, attribute, segment, flags, divisor, remainder)
101 101
102 return 0 102 return 0
103 103
104 104
105 if __name__ == '__main__': 105 if __name__ == '__main__':
106 sys.exit(main(sys.argv)) 106 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « tools/elf.py ('k') | tools/elf_fuzzer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698